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
c114133f
Commit
c114133f
authored
May 29, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Server: HTTP and RTSP header syntax
(cherry picked from commit
cdb6faf0
)
parent
ca260fc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
modules/misc/rtsp.c
modules/misc/rtsp.c
+2
-2
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+1
-1
src/network/httpd.c
src/network/httpd.c
+1
-1
No files found.
modules/misc/rtsp.c
View file @
c114133f
...
...
@@ -1275,7 +1275,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
return
VLC_EGENERIC
;
}
httpd_MsgAdd
(
answer
,
"Server"
,
"VLC
Server"
);
httpd_MsgAdd
(
answer
,
"Server"
,
"VLC
/%s"
,
VERSION
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
psz_cseq
=
httpd_MsgGet
(
query
,
"Cseq"
);
psz_cseq
?
i_cseq
=
atoi
(
psz_cseq
)
:
0
;
...
...
@@ -1513,7 +1513,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
break
;
}
httpd_MsgAdd
(
answer
,
"Server"
,
"VLC
Server"
);
httpd_MsgAdd
(
answer
,
"Server"
,
"VLC
/%s"
,
VERSION
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
psz_cseq
=
httpd_MsgGet
(
query
,
"Cseq"
);
if
(
psz_cseq
)
...
...
modules/stream_out/rtsp.c
View file @
c114133f
...
...
@@ -398,7 +398,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
httpd_MsgAdd
(
answer
,
"Server"
,
"
%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Server"
,
"
VLC/%s"
,
VERSION
);
/* Date: is always allowed, and sometimes mandatory with RTSP/2.0. */
struct
tm
ut
;
...
...
src/network/httpd.c
View file @
c114133f
...
...
@@ -2144,7 +2144,7 @@ static void* httpd_HostThread( void *data )
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
httpd_MsgAdd
(
answer
,
"Server"
,
"
%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Server"
,
"
VLC/%s"
,
VERSION
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"0"
);
switch
(
query
->
i_proto
)
...
...
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