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:
Liam 2024-08-17 17:38:34 -04:00
parent 25748dc8ff
commit d78201d05f

View file

@ -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'