Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f0e4276f
Commit
f0e4276f
authored
Mar 20, 2006
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http: Content-Type should be case-insensitive.
parent
f1e2a206
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
modules/control/http/http.c
modules/control/http/http.c
+5
-4
modules/control/http/http.h
modules/control/http/http.h
+1
-0
No files found.
modules/control/http/http.c
View file @
f0e4276f
...
...
@@ -724,7 +724,7 @@ int E_(HandlerCallback)( httpd_handler_sys_t *p_args,
p
=
p_in
;
for
(
;
;
)
{
if
(
!
strncmp
(
p
,
"Content-Type: "
,
strlen
(
"Content-Type: "
)
)
)
if
(
!
strnc
asec
mp
(
p
,
"Content-Type: "
,
strlen
(
"Content-Type: "
)
)
)
{
char
*
end
=
strchr
(
p
,
'\r'
);
if
(
end
==
NULL
)
...
...
@@ -735,7 +735,8 @@ int E_(HandlerCallback)( httpd_handler_sys_t *p_args,
TAB_APPEND
(
i_env
,
ppsz_env
,
psz_tmp
);
*
end
=
'\r'
;
}
if
(
!
strncmp
(
p
,
"Content-Length: "
,
strlen
(
"Content-Length: "
)
)
)
if
(
!
strncasecmp
(
p
,
"Content-Length: "
,
strlen
(
"Content-Length: "
)
)
)
{
char
*
end
=
strchr
(
p
,
'\r'
);
if
(
end
==
NULL
)
...
...
@@ -805,8 +806,8 @@ int E_(HandlerCallback)( httpd_handler_sys_t *p_args,
return
VLC_SUCCESS
;
}
p
=
p_buffer
;
while
(
strncmp
(
p
,
"Content-Type: text/html"
,
strlen
(
"Content-Type: text/html"
)
)
)
while
(
strnc
asec
mp
(
p
,
"Content-Type: text/html"
,
strlen
(
"Content-Type: text/html"
)
)
)
{
p
=
strchr
(
p
,
'\n'
);
if
(
p
==
NULL
||
p
[
1
]
==
'\r'
)
...
...
modules/control/http/http.h
View file @
f0e4276f
...
...
@@ -30,6 +30,7 @@
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <strings.h>
#include <ctype.h>
#include <vlc/vlc.h>
#include <vlc/intf.h>
...
...
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