From 98f2476751b9fd8d826430973c7b0b829e84c25b Mon Sep 17 00:00:00 2001 From: Robert Di Paolo Date: Wed, 18 Mar 2015 09:48:17 +0000 Subject: [PATCH] Added PATCH to list of valid HTTP Methods. --- mongoose.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index dc489bff..00c13d0a 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2469,7 +2469,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.