Skip to content

Commit

Permalink
serving: absolute request URLs need a scheme
Browse files Browse the repository at this point in the history
Fix #822
  • Loading branch information
untitaker committed Apr 10, 2016
1 parent 064f101 commit e9ff063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion werkzeug/serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def shutdown_server():
if key not in ('HTTP_CONTENT_TYPE', 'HTTP_CONTENT_LENGTH'):
environ[key] = value

if request_url.netloc:
if request_url.scheme and request_url.netloc:
environ['HTTP_HOST'] = request_url.netloc

return environ
Expand Down

0 comments on commit e9ff063

Please # to comment.