diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-11-24 21:28:48 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-11-24 21:28:48 +0100 |
commit | 1561f0c4ea7801fef9689387e19c77d300f98a2d (patch) | |
tree | 66cdc883230c4beb8729e76e8fde3d3fc3f6720c /sys/src/cmd/webfs/url.c | |
parent | f2bd1de5bdba2449f01085984483702adb833fea (diff) |
webfs: preserve unicode hostname, only convert to ascii when sending over the wire
we'd like to keep Url.host in unicode for factotum key
lookup. only when we send the url in a request, we have
to convert it to ascii.
Diffstat (limited to 'sys/src/cmd/webfs/url.c')
-rw-r--r-- | sys/src/cmd/webfs/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/webfs/url.c b/sys/src/cmd/webfs/url.c index ebd538dbf..7ced4805d 100644 --- a/sys/src/cmd/webfs/url.c +++ b/sys/src/cmd/webfs/url.c @@ -102,7 +102,7 @@ Ufmt(Fmt *f) fmtprint(f, "@"); } if(u->host){ - fmtprint(f, strchr(u->host, ':') ? "[%s]" : "%H", u->host); + fmtprint(f, strchr(u->host, ':') ? "[%s]" : "%s", u->host); if(u->port) fmtprint(f, ":%s", u->port); } |