aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-09 13:34:53 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-09 13:34:53 +0000
commit9980d233c4d9bea05e47e5972b2ab47976e942c4 (patch)
tree113c5a9347919cffd8287912f956efb896aeddee
parent52a06531fc3b224994bbd258a061dc1a298ce583 (diff)
downloadmpd-9980d233c4d9bea05e47e5972b2ab47976e942c4.tar.gz
mpd-9980d233c4d9bea05e47e5972b2ab47976e942c4.tar.xz
mpd-9980d233c4d9bea05e47e5972b2ab47976e942c4.zip
Tidying up some code.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6519 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputStream_http.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index 8acc106d8..ca5c73a7c 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -465,18 +465,20 @@ static int finishHTTPInit(InputStream * inStream)
/* deal with ICY metadata later, for now its fucking up stuff! */
length = snprintf(request, sizeof(request),
- "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"
- "%s" /* authorization */
- "Icy-Metadata:1\r\n"
- "\r\n",
- data->path, data->host,
- PACKAGE_NAME, PACKAGE_VERSION,
- inStream->offset,
- data->proxyAuth ? data->proxyAuth :
- (data->httpAuth ? data->httpAuth : ""));
+ "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"
+ "%s" /* authorization */
+ "Icy-Metadata:1\r\n"
+ "\r\n",
+ data->path,
+ data->host,
+ PACKAGE_NAME, PACKAGE_VERSION,
+ inStream->offset,
+ data->proxyAuth ? data->proxyAuth :
+ (data->httpAuth ? data->httpAuth : ""));
if (length >= sizeof(request))
goto close_err;