Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
05a66223
Commit
05a66223
authored
Sep 02, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
b1e0a5cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/network/httpd.c
src/network/httpd.c
+5
-4
No files found.
src/network/httpd.c
View file @
05a66223
...
@@ -399,7 +399,7 @@ httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
...
@@ -399,7 +399,7 @@ httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
answer
->
i_proto
=
HTTPD_PROTO_HTTP
;
answer
->
i_proto
=
HTTPD_PROTO_HTTP
;
answer
->
i_version
=
(
query
->
i_version
>
1
)
?
1
:
query
->
i_version
;
answer
->
i_version
=
1
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_status
=
200
;
answer
->
i_status
=
200
;
...
@@ -643,7 +643,7 @@ static int httpd_RedirectCallBack( httpd_callback_sys_t *p_sys,
...
@@ -643,7 +643,7 @@ static int httpd_RedirectCallBack( httpd_callback_sys_t *p_sys,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
answer
->
i_proto
=
HTTPD_PROTO_HTTP
;
answer
->
i_proto
=
HTTPD_PROTO_HTTP
;
answer
->
i_version
=
(
query
->
i_version
>
1
)
?
1
:
query
->
i_version
;
answer
->
i_version
=
1
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_status
=
301
;
answer
->
i_status
=
301
;
...
@@ -1607,7 +1607,7 @@ static void httpd_ClientRecv( httpd_client_t *cl )
...
@@ -1607,7 +1607,7 @@ static void httpd_ClientRecv( httpd_client_t *cl )
if
(
!
strncmp
(
(
char
*
)
cl
->
p_buffer
,
msg_type
[
i
].
name
,
if
(
!
strncmp
(
(
char
*
)
cl
->
p_buffer
,
msg_type
[
i
].
name
,
strlen
(
msg_type
[
i
].
name
)
)
)
strlen
(
msg_type
[
i
].
name
)
)
)
{
{
p
=
(
char
*
)
&
cl
->
p_buffer
[
strlen
(
(
char
*
)
msg_type
[
i
].
name
)
+
1
];
p
=
(
char
*
)
&
cl
->
p_buffer
[
strlen
(
msg_type
[
i
].
name
)
+
1
];
cl
->
query
.
i_type
=
msg_type
[
i
].
i_type
;
cl
->
query
.
i_type
=
msg_type
[
i
].
i_type
;
if
(
cl
->
query
.
i_proto
!=
msg_type
[
i
].
i_proto
)
if
(
cl
->
query
.
i_proto
!=
msg_type
[
i
].
i_proto
)
{
{
...
@@ -2053,6 +2053,7 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -2053,6 +2053,7 @@ static void httpd_HostThread( httpd_host_t *host )
switch
(
query
->
i_proto
)
switch
(
query
->
i_proto
)
{
{
case
HTTPD_PROTO_HTTP
:
case
HTTPD_PROTO_HTTP
:
answer
->
i_version
=
1
;
httpd_MsgAdd
(
answer
,
"Allow"
,
httpd_MsgAdd
(
answer
,
"Allow"
,
"GET,HEAD,POST,OPTIONS"
);
"GET,HEAD,POST,OPTIONS"
);
break
;
break
;
...
@@ -2078,8 +2079,8 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -2078,8 +2079,8 @@ static void httpd_HostThread( httpd_host_t *host )
httpd_MsgAdd
(
answer
,
"Public"
,
"DESCRIBE,SETUP,"
httpd_MsgAdd
(
answer
,
"Public"
,
"DESCRIBE,SETUP,"
"TEARDOWN,PLAY,PAUSE,GET_PARAMETER"
);
"TEARDOWN,PLAY,PAUSE,GET_PARAMETER"
);
break
;
}
}
break
;
}
}
cl
->
i_buffer
=
-
1
;
/* Force the creation of the answer in
cl
->
i_buffer
=
-
1
;
/* Force the creation of the answer in
...
...
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