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
f16fa5ed
Commit
f16fa5ed
authored
Mar 20, 2015
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #492 from RobertDiPaolo/feature/Add_PATCH_Method
Added PATCH to list of valid HTTP Methods.
parents
c0ba32f7
98f24767
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mongoose.c
mongoose.c
+2
-1
No files found.
mongoose.c
View file @
f16fa5ed
...
...
@@ -2473,7 +2473,8 @@ int mg_url_decode(const char *src, size_t src_len, char *dst,
static
int
is_valid_http_method
(
const
char
*
s
)
{
return
!
strcmp
(
s
,
"GET"
)
||
!
strcmp
(
s
,
"POST"
)
||
!
strcmp
(
s
,
"HEAD"
)
||
!
strcmp
(
s
,
"CONNECT"
)
||
!
strcmp
(
s
,
"PUT"
)
||
!
strcmp
(
s
,
"DELETE"
)
||
!
strcmp
(
s
,
"OPTIONS"
)
||
!
strcmp
(
s
,
"PROPFIND"
)
||
!
strcmp
(
s
,
"MKCOL"
);
!
strcmp
(
s
,
"OPTIONS"
)
||
!
strcmp
(
s
,
"PROPFIND"
)
||
!
strcmp
(
s
,
"MKCOL"
)
||
!
strcmp
(
s
,
"PATCH"
);
}
// Parse HTTP request, fill in mg_request structure.
...
...
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