diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-02-19 06:49:01 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-02-19 06:49:01 +0000 |
commit | 93726921273e4d8ae6f38e0f441e013d6fa7890d (patch) | |
tree | 8d5a3bf4ed9dc09235fba5d9a64e013c2c83490d /src/inputStream_http.c | |
parent | 8b8d6ddbbd37099cd6e0cf997e9cbba37daf2fe2 (diff) | |
download | mpd-93726921273e4d8ae6f38e0f441e013d6fa7890d.tar.gz mpd-93726921273e4d8ae6f38e0f441e013d6fa7890d.tar.xz mpd-93726921273e4d8ae6f38e0f441e013d6fa7890d.zip |
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
Diffstat (limited to 'src/inputStream_http.c')
-rw-r--r-- | src/inputStream_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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" |