diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-04-18 16:14:28 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-04-18 16:14:28 +0200 |
commit | 2423c939e096ded3bf6a09f5fc70ba2218df85cd (patch) | |
tree | d75c9c0379d497d4b98c3677b24c6a78e721974d /lib/http_client.c | |
parent | 6eca2eb9a06d0991fa0f431839e528177313566a (diff) |
Send Connection: close headers so webservers won't try keepalive connections
which http_client really can't deal with.
Diffstat (limited to 'lib/http_client.c')
-rw-r--r-- | lib/http_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 ); |