Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
50e9af20
Commit
50e9af20
authored
Sep 02, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't claim to support HTTP 1.x where x > 1
parent
4008d8a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
include/vlc_httpd.h
include/vlc_httpd.h
+3
-3
src/network/httpd.c
src/network/httpd.c
+7
-7
No files found.
include/vlc_httpd.h
View file @
50e9af20
...
...
@@ -67,9 +67,9 @@ struct httpd_message_t
{
httpd_client_t
*
cl
;
/* NULL if not throught a connection e vlc internal */
int
i_type
;
int
i_proto
;
int
i_version
;
uint8_t
i_type
;
uint8_t
i_proto
;
uint8_t
i_version
;
/* for an answer */
int
i_status
;
...
...
src/network/httpd.c
View file @
50e9af20
...
...
@@ -399,7 +399,7 @@ httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
return
VLC_SUCCESS
;
}
answer
->
i_proto
=
HTTPD_PROTO_HTTP
;
answer
->
i_version
=
query
->
i_version
;
answer
->
i_version
=
(
query
->
i_version
>
1
)
?
1
:
query
->
i_version
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_status
=
200
;
...
...
@@ -642,8 +642,8 @@ static int httpd_RedirectCallBack( httpd_callback_sys_t *p_sys,
{
return
VLC_SUCCESS
;
}
answer
->
i_proto
=
query
->
i_proto
;
answer
->
i_version
=
query
->
i_version
;
answer
->
i_proto
=
HTTPD_PROTO_HTTP
;
answer
->
i_version
=
(
query
->
i_version
>
1
)
?
1
:
query
->
i_version
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_status
=
301
;
...
...
@@ -1286,7 +1286,7 @@ void httpd_MsgInit( httpd_message_t *msg )
msg
->
cl
=
NULL
;
msg
->
i_type
=
HTTPD_MSG_NONE
;
msg
->
i_proto
=
HTTPD_PROTO_NONE
;
msg
->
i_version
=
-
1
;
msg
->
i_version
=
-
1
;
/* FIXME */
msg
->
i_status
=
0
;
...
...
@@ -1825,8 +1825,8 @@ static void httpd_ClientSend( httpd_client_t *cl )
}
p
=
(
char
*
)
cl
->
p_buffer
;
p
+=
sprintf
(
p
,
"%s
/1.%d
%d %s
\r\n
"
,
cl
->
answer
.
i_proto
==
HTTPD_PROTO_HTTP
?
"HTTP
"
:
"RTSP
"
,
p
+=
sprintf
(
p
,
"%s
.%u
%d %s
\r\n
"
,
cl
->
answer
.
i_proto
==
HTTPD_PROTO_HTTP
?
"HTTP
/1"
:
"RTSP/1
"
,
cl
->
answer
.
i_version
,
cl
->
answer
.
i_status
,
psz_status
);
for
(
i
=
0
;
i
<
cl
->
answer
.
i_name
;
i
++
)
...
...
@@ -2043,7 +2043,7 @@ static void httpd_HostThread( httpd_host_t *host )
const
char
*
psz
;
/* unimplemented */
answer
->
i_proto
=
query
->
i_proto
;
answer
->
i_proto
=
query
->
i_proto
;
answer
->
i_type
=
HTTPD_MSG_ANSWER
;
answer
->
i_version
=
0
;
...
...
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