summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/webfs/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/webfs/http.c b/sys/src/cmd/webfs/http.c
index c0c4e435f..6562b9815 100644
--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -764,6 +764,9 @@ http(char *m, Url *u, Key *shdr, Buq *qbody, Buq *qpost)
bufree(qpost);
qpost = nil;
}
+ shdr = delkey(shdr, "Content-Length");
+ shdr = delkey(shdr, "Content-Type");
+ shdr = delkey(shdr, "Transfer-Encoding");
if(cistrcmp(method, "HEAD"))
nstrcpy(method, "GET", sizeof(method));
case 301: /* Moved Permanently */