From e0b076eb06f605cae91022d2e644cda2e5ea5676 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 19 Sep 2011 17:34:10 +0200 Subject: waitress: enable http 1.1 --- src/libwaitress/waitress.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c index 9e56a5a..a0b6932 100644 --- a/src/libwaitress/waitress.c +++ b/src/libwaitress/waitress.c @@ -44,6 +44,7 @@ THE SOFTWARE. #include "waitress.h" #define streq(a,b) (strcmp(a,b) == 0) +#define WAITRESS_HTTP_VERSION "1.1" typedef struct { char *data; @@ -678,13 +679,13 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) { /* send request */ if (WaitressProxyEnabled (waith)) { snprintf (buf, WAITRESS_BUFFER_SIZE, - "%s http://%s:%s/%s HTTP/1.0\r\n", + "%s http://%s:%s/%s HTTP/" WAITRESS_HTTP_VERSION "\r\n", (waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"), waith->url.host, WaitressDefaultPort (&waith->url), path); } else { snprintf (buf, WAITRESS_BUFFER_SIZE, - "%s /%s HTTP/1.0\r\n", + "%s /%s HTTP/" WAITRESS_HTTP_VERSION "\r\n", (waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"), path); } -- cgit v1.2.3