Commit 2c5db299 authored by François Perrad's avatar François Perrad

AWS: only CanonicalizedAmzHeaders require lowercase

parent bb7cdf13
......@@ -4,6 +4,7 @@ Revision history for lua-Spore
- add middleware Auth.DataPublica
- refactor tests for LuaJIT
- compat with LuaCrypto 0.3.x
- fix AWS signature (thanks to Pierre "catwell" Chapuis)
0.2.0 Sat Mar 3 22:30:00 2012
- work with Lua 5.2.0
......
......@@ -61,7 +61,7 @@ function m:call (req)
.. (req.headers['content-type'] or '') .. "\n"
.. (req.headers['date'] or '') .. "\n"
.. get_canonical_headers()
.. bucket:lower() .. object .. query
.. bucket .. object .. query
end -- get_string_to_sign
if spore.authentication and self.aws_access_key and self.aws_secret_key then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment