From 2423c939e096ded3bf6a09f5fc70ba2218df85cd Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 18 Apr 2011 16:14:28 +0200 Subject: Send Connection: close headers so webservers won't try keepalive connections which http_client really can't deal with. --- lib/oauth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oauth.c') diff --git a/lib/oauth.c b/lib/oauth.c index 9c67363a..372a62d3 100644 --- a/lib/oauth.c +++ b/lib/oauth.c @@ -285,6 +285,7 @@ static void *oauth_post_request( const char *url, GSList **params_, http_input_f "Host: %s\r\n" "Content-Type: application/x-www-form-urlencoded\r\n" "Content-Length: %zd\r\n" + "Connection: close\r\n" "\r\n" "%s", url_p.file, url_p.host, strlen( post ), post ); g_free( post ); -- cgit v1.2.3