Commit 9ccf0d8a authored by J. Alexander Treuman's avatar J. Alexander Treuman

Use string concatenation instead of snprintf for the User-Agent HTTP

header. git-svn-id: https://svn.musicpd.org/mpd/trunk@6520 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 9980d233
...@@ -468,14 +468,13 @@ static int finishHTTPInit(InputStream * inStream) ...@@ -468,14 +468,13 @@ static int finishHTTPInit(InputStream * inStream)
"GET %s HTTP/1.1\r\n" "GET %s HTTP/1.1\r\n"
"Host: %s\r\n" "Host: %s\r\n"
/* "Connection: close\r\n" */ /* "Connection: close\r\n" */
"User-Agent: %s/%s\r\n" "User-Agent: " PACKAGE_NAME "/" PACKAGE_VERSION "\r\n"
"Range: bytes=%ld-\r\n" "Range: bytes=%ld-\r\n"
"%s" /* authorization */ "%s" /* authorization */
"Icy-Metadata:1\r\n" "Icy-Metadata:1\r\n"
"\r\n", "\r\n",
data->path, data->path,
data->host, data->host,
PACKAGE_NAME, PACKAGE_VERSION,
inStream->offset, inStream->offset,
data->proxyAuth ? data->proxyAuth : data->proxyAuth ? data->proxyAuth :
(data->httpAuth ? data->httpAuth : "")); (data->httpAuth ? data->httpAuth : ""));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment