aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter_http.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2013-06-16 13:15:15 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2013-06-16 13:15:15 +0100
commitab19567e25a35beb23f922303d1f60ed13228356 (patch)
tree8a29cfdea7ba920861c13fe98242e449615f8bbc /protocols/twitter/twitter_http.c
parent41a94dd69dcbb5d4ef1fda5949196fed63994c03 (diff)
parentdd7b931d0fe950c5a6646c72565739fd8835c136 (diff)
Merging HTTP/1.1 branch. This implements HTTP/1.1 support in http_client.
Little benefit as I'm not burning my fingers on keepalive connecitons for now, but eventually the Twitter streaming API is going to drop 1.0 support: https://dev.twitter.com/blog/deprecating-http-1.0-streaming-api
Diffstat (limited to 'protocols/twitter/twitter_http.c')
-rw-r--r--protocols/twitter/twitter_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/twitter/twitter_http.c b/protocols/twitter/twitter_http.c
index 0f1ab518..f7ab6e18 100644
--- a/protocols/twitter/twitter_http.c
+++ b/protocols/twitter/twitter_http.c
@@ -77,7 +77,7 @@ struct http_request *twitter_http(struct im_connection *ic, char *url_string, ht
}
// Make the request.
- g_string_printf(request, "%s %s%s%s%s HTTP/1.0\r\n"
+ g_string_printf(request, "%s %s%s%s%s HTTP/1.1\r\n"
"Host: %s\r\n"
"User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CPU "\r\n",
is_post ? "POST" : "GET",