Skip to content
Browse files

fixup non-https urls

  • Loading branch information...
1 parent a7d14dc commit 41a2bb1b2d33ca2f21c776c66ae6bb7d26922497 @atmos atmos committed May 25, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 lib/warden-github/strategy.rb
  2. +1 −1 lib/warden-github/version.rb
View
2 lib/warden-github/strategy.rb
@@ -58,6 +58,8 @@ def absolute_url(request, suffix = nil, proto = "http")
when "https"
request.port == 443 ? "" : ":#{request.port}"
end
+
+ proto = "http" if proto.nil?
"#{proto}://#{request.host}#{port_part}#{suffix}"
end
end
View
2 lib/warden-github/version.rb
@@ -1,5 +1,5 @@
module Warden
module Github
- VERSION = "0.4.2"
+ VERSION = "0.4.3"
end
end

0 comments on commit 41a2bb1

Please sign in to comment.
Something went wrong with that request. Please try again.