Skip to content

Commit

Permalink
Fix protocol conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jan 17, 2014
1 parent 796412c commit 1f5c6a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ process_url = (url, transferredHeaders, resp, remaining_redirects) ->
if url.host?
if url.protocol is 'https:'
Protocol = Https
if url.protocol is 'http:'
else if url.protocol is 'http:'
Protocol = Http
else if url.protocol != 'http:'
else
four_oh_four(resp, "Unknown protocol", url)
return

Expand Down
5 changes: 2 additions & 3 deletions server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f5c6a9

Please sign in to comment.