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
This commit is contained in:
parent
8b8d6ddbbd
commit
9372692127
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user