summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-06-19 09:19:10 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-06-19 09:19:10 +0200
commitbd6a86a52b4618dcac1119b447ade78dcbd2d690 (patch)
tree2e43c9af6d5ca02a596a643852f12716ad9ee5f7
parentae311094ad8f95c1ff5d06a8edd865579175922d (diff)
downloadplan9front-bd6a86a52b4618dcac1119b447ade78dcbd2d690.tar.xz
webfs: fix google login 400 bad request
-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 */