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
6c808bdb
Commit
6c808bdb
authored
Aug 22, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Require header support
parent
1c07ad88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
13 deletions
+25
-13
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+15
-7
src/network/httpd.c
src/network/httpd.c
+10
-6
No files found.
modules/stream_out/rtp.c
View file @
6c808bdb
...
...
@@ -1643,7 +1643,11 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
answer
->
p_body
=
NULL
;
if
(
httpd_MsgGet
(
query
,
"Require"
)
!=
NULL
)
{
answer
->
i_status
=
551
;
httpd_MsgAdd
(
query
,
"Unsupported"
,
"%s"
,
httpd_MsgGet
(
query
,
"Require"
)
);
}
else
switch
(
query
->
i_type
)
{
...
...
@@ -1745,10 +1749,11 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
return
VLC_EGENERIC
;
}
httpd_MsgAdd
(
answer
,
"Server"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Server"
,
"%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
psz_cseq
=
httpd_MsgGet
(
query
,
"Cseq"
);
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz_cseq
?
psz_cseq
:
"0"
);
if
(
psz_cseq
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz_cseq
);
httpd_MsgAdd
(
answer
,
"Cache-Control"
,
"%s"
,
"no-cache"
);
if
(
psz_session
)
...
...
@@ -1815,7 +1820,11 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
}
if
(
httpd_MsgGet
(
query
,
"Require"
)
!=
NULL
)
{
answer
->
i_status
=
551
;
httpd_MsgAdd
(
query
,
"Unsupported"
,
"%s"
,
httpd_MsgGet
(
query
,
"Require"
)
);
}
else
switch
(
query
->
i_type
)
{
...
...
@@ -1993,14 +2002,13 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
default:
answer
->
i_status
=
460
;
break
;
return
VLC_EGENERIC
;
}
httpd_MsgAdd
(
answer
,
"Server"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
psz_cseq
=
httpd_MsgGet
(
query
,
"Cseq"
);
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz_cseq
?
psz_cseq
:
"0"
);
if
(
psz_cseq
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz_cseq
);
httpd_MsgAdd
(
answer
,
"Server"
,
"%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
httpd_MsgAdd
(
answer
,
"Cache-Control"
,
"%s"
,
"no-cache"
);
if
(
psz_session
)
...
...
src/network/httpd.c
View file @
6c808bdb
...
...
@@ -2036,24 +2036,28 @@ static void httpd_HostThread( httpd_host_t *host )
}
else
if
(
i_msg
==
HTTPD_MSG_OPTIONS
)
{
const
char
*
psz
_cseq
;
const
char
*
psz
;
/* unimplemented */
answer
->
i_proto
=
query
->
i_proto
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_version
=
0
;
answer
->
i_status
=
200
;
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
psz_cseq
=
httpd_MsgGet
(
query
,
"Cseq"
);
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz_cseq
?
psz_cseq
:
"0"
);
httpd_MsgAdd
(
answer
,
"Server"
,
"VLC Server"
);
psz
=
httpd_MsgGet
(
query
,
"Cseq"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz
);
psz
=
httpd_MsgGet
(
query
,
"Require"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
query
,
"Unsupported"
,
"%s"
,
psz
);
httpd_MsgAdd
(
answer
,
"Server"
,
"%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Public"
,
"DESCRIBE, SETUP, "
"TEARDOWN, PLAY, PAUSE"
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"0"
);
cl
->
i_buffer
=
-
1
;
/* Force the creation of the answer in
* httpd_ClientSend */
...
...
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