lib/warden-github/strategy.rb in warden-github-0.4.2 vs lib/warden-github/strategy.rb in warden-github-0.4.3
- old
+ new
@@ -56,8 +56,10 @@
when "http"
request.port == 80 ? "" : ":#{request.port}"
when "https"
request.port == 443 ? "" : ":#{request.port}"
end
+
+ proto = "http" if proto.nil?
"#{proto}://#{request.host}#{port_part}#{suffix}"
end
end