]> git.proxmox.com Git - ceph.git/blobdiff - ceph/examples/rgw-cache/nginx-lua-file.lua
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / examples / rgw-cache / nginx-lua-file.lua
index d776cb700f447db2bb78f69b5a5b3f0085942598..efaf42230a58b3fd06cd4690aa631fca2bedbf95 100644 (file)
@@ -20,7 +20,7 @@ end
 if check ~= nil then
     local xamzcache = concathdrs:sub(2)
     xamzcache = xamzcache .. string.char(0xB2) .. "Authorization" .. string.char(0xB1) .. check
-        if xamzcache:find("aws4_request") ~= nil and uri ~= "/" and uri:find("?") == nil then
+        if xamzcache:find("aws4_request") ~= nil and uri ~= "/" and uri:find("?") == nil and hdrs["if-match"] == nil then
             ngx.var.authvar = xamzcache
         end
 end