Software /
code /
prosody
Changeset
4879:45bb378a4a98
net.http.parser: Keep the Host header no host is present in the URI
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 May 2012 14:00:57 +0200 |
parents | 4878:80ab7c50608d |
children | 4880:6d96e2e717c1 |
files | net/http/parser.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 = {