From bd6a86a52b4618dcac1119b447ade78dcbd2d690 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 19 Jun 2012 09:19:10 +0200 Subject: webfs: fix google login 400 bad request --- sys/src/cmd/webfs/http.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.2.3