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