mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 12:08:00 +01:00
Only allow GET
The proxy_cache module will always internally convert HEAD to GET (which is desired). This does not update the request method variables exposed to Lua, so hardcode GET.
This commit is contained in:
parent
25748dc8ff
commit
d78201d05f
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ end
|
||||||
|
|
||||||
local function get_hashed_canonical_request(timestamp, host, uri)
|
local function get_hashed_canonical_request(timestamp, host, uri)
|
||||||
local digest = get_sha256_digest(ngx.var.request_body)
|
local digest = get_sha256_digest(ngx.var.request_body)
|
||||||
local canonical_request = ngx.req.get_method() .. '\n'
|
local canonical_request = 'GET' .. '\n'
|
||||||
.. uri .. '\n'
|
.. uri .. '\n'
|
||||||
.. '\n'
|
.. '\n'
|
||||||
.. 'host:' .. host .. '\n'
|
.. 'host:' .. host .. '\n'
|
||||||
|
|
Loading…
Reference in a new issue