# HG changeset patch # User Kim Alvefur # Date 1337083257 -7200 # Node ID 45bb378a4a982effd0ad0fd9bf2c9f779e7a3a23 # Parent 80ab7c50608dbfbfedd5e9cf55e1b6a7ec9881ec net.http.parser: Keep the Host header no host is present in the URI diff -r 80ab7c50608d -r 45bb378a4a98 net/http/parser.lua --- a/net/http/parser.lua Mon May 14 18:04:32 2012 +0200 +++ b/net/http/parser.lua Tue May 15 14:00:57 2012 +0200 @@ -93,7 +93,7 @@ else local parsed_url = url_parse(path); path = preprocess_path(parsed_url.path); - headers.host = parsed_url.host; + headers.host = parsed_url.host or headers.host; len = len or 0; packet = {