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 14, 2016
1 parent abbbf9a commit 413a978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion werkzeug/serving.py
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 413a978

Please sign in to comment.