]> Sergey Matveev's repositories - public-inbox.git/commit
lei_xsearch: use curl -d '' for nginx compatibility
authorEric Wong <e@80x24.org>
Sun, 24 Jan 2021 11:46:52 +0000 (04:46 -0700)
committerEric Wong <e@80x24.org>
Sun, 24 Jan 2021 19:45:31 +0000 (15:45 -0400)
commit533e1234bc03a1ca8754d249aa8c2ce157e26780
treeb407b4c88f829993fb588b1d4b6a405eef8bae77
parent4f50ccec41960faa703bf71b30d8ae867d0bd039
lei_xsearch: use curl -d '' for nginx compatibility

It appears Content-Length and/or Content-Type headers are
required by nginx with POST requests.

varnish alone doesn't have this requirement and my (perhaps
lossy) reading of RFC 2616, 7230, 7231 didn't note this, either.

In any case, we must support nginx even if it's overly strict.

Reported-By: Kyle Meyer <kyle@kyleam.com>
Link: https://public-inbox.org/meta/87v9bmswkh.fsf@kyleam.com/
lib/PublicInbox/LeiXSearch.pm