summaryrefslogtreecommitdiffhomepage
path: root/auto/ssltls
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-07-05 16:43:45 +0300
committerValentin Bartenev <vbart@nginx.com>2018-07-05 16:43:45 +0300
commit7e3de003c7e6078be822b64c40042cb4385210fd (patch)
treeaf9fcbc3d4ca640ddc10b81b8f6ac987eaac691c /auto/ssltls
parent234deb51f48b43a5fb080d16746838f355b725b4 (diff)
downloadunit-7e3de003c7e6078be822b64c40042cb4385210fd.tar.gz
unit-7e3de003c7e6078be822b64c40042cb4385210fd.tar.bz2
PHP: fixed request body processing.
The implementation of module was based on the assumption that PHP reads request body and headers in the particular order. For the POST request the body goes before headers and vice versa for all other requests. But as it appeared later, this order is unspecified and depends on many factors, including the particular code of PHP application. Among other factors those can affect ordering: - presence of "Content-Type" header; - "variables_order" php.ini setting; - "enable_post_data_reading" php.ini setting; - reading php://input by application; and this list can be incomplete. As a temporary workaround, request body now is always put before headers and it is gracefully skipped whenever PHP wants to get headers. This closes #144 issue on GitHub.
Diffstat (limited to 'auto/ssltls')
0 files changed, 0 insertions, 0 deletions