From dc96373a1acc9aca22e7ea53f7ad3f20d2dfc0d3 Mon Sep 17 00:00:00 2001 From: culyerr Date: Wed, 30 Mar 2016 13:39:35 +0100 Subject: [PATCH] Added PATCH support --- iis/mymodule.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/iis/mymodule.cpp b/iis/mymodule.cpp index 464968cba9..00a45d4a03 100644 --- a/iis/mymodule.cpp +++ b/iis/mymodule.cpp @@ -1007,6 +1007,16 @@ CMyHttpModule::OnBeginRequest( break; } + if (r->method_number == M_INVALID) + { + if ((req->pUnknownVerb != NULL) && (strcmp(req->pUnknownVerb, "PATCH")==0)) + { + // this is a PATCH command and should be supported + r->method = "PATCH"; + r->method_number = M_PATCH; + } + } + if(HTTP_EQUAL_VERSION(req->Version, 0, 9)) r->protocol = "HTTP/0.9"; else if(HTTP_EQUAL_VERSION(req->Version, 1, 0))