Automattic / knox

S3 Lib
MIT License
1.74k stars 285 forks source link

Option to use x-amz-date header instead of Date #299

Open zbyte64 opened 8 years ago

zbyte64 commented 8 years ago

I have noticed that with browserify / jspm the Date header gets stripped causing AWS to reject the request saying the signature does not match. It seems that stream-http will strip the Date header because it is "unsafe"

https://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method

To work around this the client should have an option to set the x-amz-date header instead of Date. Is this reasonable?