Bug 63284 - Http Request : there is no request body using HTTP PATCH request
Summary: Http Request : there is no request body using HTTP PATCH request
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_lua (show other bugs)
Version: 2.5-HEAD
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-25 09:44 UTC by Armin Pies
Modified: 2019-03-25 09:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.