Tidying up some code.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6519 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
52a06531fc
commit
9980d233c4
@ -465,18 +465,20 @@ static int finishHTTPInit(InputStream * inStream)
|
|||||||
|
|
||||||
/* deal with ICY metadata later, for now its fucking up stuff! */
|
/* deal with ICY metadata later, for now its fucking up stuff! */
|
||||||
length = snprintf(request, sizeof(request),
|
length = snprintf(request, sizeof(request),
|
||||||
"GET %s HTTP/1.1\r\n" "Host: %s\r\n"
|
"GET %s HTTP/1.1\r\n"
|
||||||
/*"Connection: close\r\n" */
|
"Host: %s\r\n"
|
||||||
"User-Agent: %s/%s\r\n"
|
/* "Connection: close\r\n" */
|
||||||
"Range: bytes=%ld-\r\n"
|
"User-Agent: %s/%s\r\n"
|
||||||
"%s" /* authorization */
|
"Range: bytes=%ld-\r\n"
|
||||||
"Icy-Metadata:1\r\n"
|
"%s" /* authorization */
|
||||||
"\r\n",
|
"Icy-Metadata:1\r\n"
|
||||||
data->path, data->host,
|
"\r\n",
|
||||||
PACKAGE_NAME, PACKAGE_VERSION,
|
data->path,
|
||||||
inStream->offset,
|
data->host,
|
||||||
data->proxyAuth ? data->proxyAuth :
|
PACKAGE_NAME, PACKAGE_VERSION,
|
||||||
(data->httpAuth ? data->httpAuth : ""));
|
inStream->offset,
|
||||||
|
data->proxyAuth ? data->proxyAuth :
|
||||||
|
(data->httpAuth ? data->httpAuth : ""));
|
||||||
|
|
||||||
if (length >= sizeof(request))
|
if (length >= sizeof(request))
|
||||||
goto close_err;
|
goto close_err;
|
||||||
|
Loading…
Reference in New Issue
Block a user