Changeset 2423c93


Ignore:
Timestamp:
2011-04-18T14:14:28Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ff139f0
Parents:
6eca2eb
Message:

Send Connection: close headers so webservers won't try keepalive connections
which http_client really can't deal with.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/http_client.c

    r6eca2eb r2423c93  
    9393        request = g_strdup_printf( "GET %s HTTP/1.0\r\n"
    9494                                   "Host: %s\r\n"
     95                                   "Connection: close\r\n"
    9596                                   "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CPU "\r\n"
    9697                                   "\r\n", url->file, url->host );
  • lib/oauth.c

    r6eca2eb r2423c93  
    286286                             "Content-Type: application/x-www-form-urlencoded\r\n"
    287287                             "Content-Length: %zd\r\n"
     288                             "Connection: close\r\n"
    288289                             "\r\n"
    289290                             "%s", url_p.file, url_p.host, strlen( post ), post );
Note: See TracChangeset for help on using the changeset viewer.