Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9502539d
Commit
9502539d
authored
Dec 18, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioscrobbler: fix request syntax
User-Agent and CRLF were invalid. Also use standard capitalization.
parent
b3494ff0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+8
-10
No files found.
modules/misc/audioscrobbler.c
View file @
9502539d
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment