diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-11-24 11:56:33 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-11-24 11:56:33 +0100 |
commit | f2bd1de5bdba2449f01085984483702adb833fea (patch) | |
tree | fa9555065cbf71382d4a8a11037e7aaab333560f /sys/src/cmd/webfs/http.c | |
parent | 3720b5ab9c4cb485c64e83d8af740aea3680123b (diff) |
webfs: support for internationalized domain name urls
Diffstat (limited to 'sys/src/cmd/webfs/http.c')
-rw-r--r-- | sys/src/cmd/webfs/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/webfs/http.c b/sys/src/cmd/webfs/http.c index e659bd725..3e023be4d 100644 --- a/sys/src/cmd/webfs/http.c +++ b/sys/src/cmd/webfs/http.c @@ -573,7 +573,7 @@ http(char *m, Url *u, Key *shdr, Buq *qbody, Buq *qpost) ru.path = Upath(u); ru.query = u->query; } - n = snprint(buf, sizeof(buf), "%s %U HTTP/1.1\r\nHost: %s%s%s\r\n", + n = snprint(buf, sizeof(buf), "%s %U HTTP/1.1\r\nHost: %H%s%s\r\n", method, &ru, u->host, u->port ? ":" : "", u->port ? u->port : ""); if(n >= sizeof(buf)-64){ werrstr("request too large"); |