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))