From 93726921273e4d8ae6f38e0f441e013d6fa7890d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Feb 2007 06:49:01 +0000 Subject: inputStream_http: fix HTTP seeking We need to identify ourselves as HTTP/1.1 so Range: works; and so the server can return HTTP/1.1 instead of HTTP/1.0. Tested against lighttpd 1.4.13 git-svn-id: https://svn.musicpd.org/mpd/trunk@5394 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputStream_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/inputStream_http.c b/src/inputStream_http.c index 46015553e..97be2775c 100644 --- a/src/inputStream_http.c +++ b/src/inputStream_http.c @@ -477,7 +477,7 @@ static int finishHTTPInit(InputStream * inStream) memset(request, 0, 2049); /* deal with ICY metadata later, for now its fucking up stuff! */ - snprintf(request, 2048, "GET %s HTTP/1.0\r\n" "Host: %s\r\n" + snprintf(request, 2048, "GET %s HTTP/1.1\r\n" "Host: %s\r\n" /*"Connection: close\r\n" */ "User-Agent: %s/%s\r\n" "Range: bytes=%ld-\r\n" -- cgit v1.2.3