mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-25 11:39:01 +08:00
Merge pull request #492 from RobertDiPaolo/feature/Add_PATCH_Method
Added PATCH to list of valid HTTP Methods.
This commit is contained in:
commit
f16fa5ed55
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user