ref: f3b27fd889ff31531ecd69bbfd1013c9ba57814e
parent: 52d407f86f35b4a9f2be36c6d61032e2ecb9f754
author: cinap_lenrek <[email protected]>
date: Mon Aug 15 05:07:34 EDT 2016
webfs: dont include http status in "needkey" error string
--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -873,7 +873,7 @@
if(hauthenticate(u, &ru, method, "WWW-Authenticate", rhdr) < 0){
Autherror:
h->cancel = 1;
- snprint(buf, sizeof(buf), "%s %r", status);
+ rerrstr(buf, sizeof(buf));
buclose(qbody, buf);
buclose(qpost, buf);
break;