request / aws-sign

AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.
Apache License 2.0
29 stars 14 forks source link

checking if options.date is truthy #6

Closed kuebk closed 10 years ago

kuebk commented 10 years ago

I'm using client which doesn't send the Date header. Because of this I'm getting the following error: TypeError: Object has no method 'toUTCString' at stringToSign (/home/developer/s3proxy/node_modules/aws-sign/index.js:121:20)

My patch fixes this issue if there is no date given.

kuebk commented 10 years ago

Could you please publish new version to npm?