Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
54989e81
Commit
54989e81
authored
Feb 08, 2017
by
Alexander Alashkin
Committed by
Cesanta Bot
Feb 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix multipart parsing
Close cesanta/mongoose#770 PUBLISHED_FROM=ae55988f1c6ccdff172b8db405adb36c91289d95
parent
bf505bb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
mongoose.c
mongoose.c
+2
-7
No files found.
mongoose.c
View file @
54989e81
...
...
@@ -5635,11 +5635,6 @@ static void mg_http_multipart_begin(struct mg_connection *nc,
char
boundary
[
100
];
int
boundary_len
;
if
(
nc
->
listener
==
NULL
)
{
/* No streaming for replies now */
goto
exit_mp
;
}
ct
=
mg_get_http_header
(
hm
,
"Content-Type"
);
if
(
ct
==
NULL
)
{
/* We need more data - or it isn't multipart mesage */
...
...
@@ -6369,8 +6364,8 @@ int mg_http_parse_header(struct mg_str *hdr, const char *var_name, char *buf,
/* Find where variable starts */
for
(
s
=
hdr
->
p
;
s
!=
NULL
&&
s
+
n
<
end
;
s
++
)
{
if
((
s
==
hdr
->
p
||
s
[
-
1
]
==
ch
||
s
[
-
1
]
==
ch1
)
&&
s
[
n
]
==
'='
&&
!
strncmp
(
s
,
var_name
,
n
))
if
((
s
==
hdr
->
p
||
s
[
-
1
]
==
ch
||
s
[
-
1
]
==
ch1
||
s
[
-
1
]
==
';'
)
&&
s
[
n
]
==
'='
&&
!
strncmp
(
s
,
var_name
,
n
))
break
;
}
...
...
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