Bug 63284

Summary: Http Request : there is no request body using HTTP PATCH request
Product: Apache httpd-2 Reporter: Armin Pies <armin.pies>
Component: mod_luaAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Armin Pies 2019-03-25 09:44:36 UTC
If a HTTP client sends a PATCH request to httpd the r:requestBody() method under Lua returns nil.

Obviously the corresponding method lua_ap_requestbody only supports POST and PUT:
...
if (r->method_number != M_POST && r->method_number != M_PUT)
            return (0);
...

So HTTP PATCH requests can not be processed with mod_lua.