summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-09-19 17:34:10 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-11-09 20:10:03 +0100
commite0b076eb06f605cae91022d2e644cda2e5ea5676 (patch)
treee6bea77c381568867c899063befc83f7aef86ded
parentcfaeccb1e8a62ef0a5f7af7d3496a3bfc5ca381e (diff)
downloadpianobar-e0b076eb06f605cae91022d2e644cda2e5ea5676.tar.gz
pianobar-e0b076eb06f605cae91022d2e644cda2e5ea5676.tar.bz2
pianobar-e0b076eb06f605cae91022d2e644cda2e5ea5676.zip
waitress: enable http 1.1
-rw-r--r--src/libwaitress/waitress.c5
1 files changed, 3 insertions, 2 deletions
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);
}