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/http_client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/http_client.c') diff --git a/lib/http_client.c b/lib/http_client.c index 69f06ec5..8b045414 100644 --- a/lib/http_client.c +++ b/lib/http_client.c @@ -92,6 +92,7 @@ struct http_request *http_dorequest_url( char *url_string, http_input_function f request = g_strdup_printf( "GET %s HTTP/1.0\r\n" "Host: %s\r\n" + "Connection: close\r\n" "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CPU "\r\n" "\r\n", url->file, url->host ); -- cgit v1.2.3