Commit 9502539d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

audioscrobbler: fix request syntax

User-Agent and CRLF were invalid. Also use standard capitalization.
parent b3494ff0
......@@ -834,19 +834,17 @@ static void *Run(void *data)
/* we transmit the data */
int i_net_ret = net_Printf(p_intf, i_post_socket,
"POST %s HTTP/1.1\n"
"Accept-Encoding: identity\n"
"Content-length: %zu\n"
"Connection: close\n"
"Content-type: application/x-www-form-urlencoded\n"
"Host: %s\n"
"User-agent: VLC media player/"VERSION"\r\n"
"POST %s HTTP/1.1\r\n"
"Host: %s\r\n"
"User-Agent: "PACKAGE_NAME"/"PACKAGE_VERSION"\r\n"
"Connection: close\r\n"
"Accept-Encoding: identity\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"Content-Length: %zu\r\n"
"\r\n"
"%s\r\n"
"\r\n",
url->psz_path, strlen(psz_submit),
url->psz_host, psz_submit
);
url->psz_path, url->psz_host, strlen(psz_submit), psz_submit);
free(psz_submit);
if (i_net_ret == -1)
......
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