diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-15 23:54:00 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-15 23:54:00 +0200 |
commit | 1628c97d1ee667908372a41be8e33720047723b5 (patch) | |
tree | c7bebc99b492f6692887832e847752de29294c8c /sys/src/cmd/webfs/http.c | |
parent | 9e08127ba6a4754fae8afcc6bca9d8b299180632 (diff) |
webfs: change %H (hostname) format to %N to not collide with encodefmt's %H (hex)
Diffstat (limited to 'sys/src/cmd/webfs/http.c')
-rw-r--r-- | sys/src/cmd/webfs/http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/webfs/http.c b/sys/src/cmd/webfs/http.c index 5f067aada..93b0cfa47 100644 --- a/sys/src/cmd/webfs/http.c +++ b/sys/src/cmd/webfs/http.c @@ -81,7 +81,7 @@ tlswrap(int fd, char *servername) if(debug) conn.trace = tlstrace; if(servername != nil) - conn.serverName = smprint("%H", servername); + conn.serverName = smprint("%N", servername); if((fd = tlsClient(fd, &conn)) < 0){ if(debug) fprint(2, "tlsClient: %r\n"); return -1; @@ -428,7 +428,7 @@ authenticate(Url *u, Url *ru, char *method, char *s) fmtprint(&fmt, "Digest "); fmtprint(&fmt, "username=\"%s\", ", ouser); fmtprint(&fmt, "realm=\"%s\", ", realm); - fmtprint(&fmt, "host=\"%H\", ", u->host); + fmtprint(&fmt, "host=\"%N\", ", u->host); fmtprint(&fmt, "uri=\"%U\", ", ru); fmtprint(&fmt, "nonce=\"%s\", ", nonce); fmtprint(&fmt, "response=\"%s\"", resp); @@ -608,7 +608,7 @@ http(char *m, Url *u, Key *shdr, Buq *qbody, Buq *qpost) /* http requires ascii encoding of host */ free(host); - host = smprint("%H", u->host); + host = smprint("%N", u->host); if(proxy && strcmp(u->scheme, "https") != 0){ ru = *u; |