Skip to content

Commit

Permalink
Day of the month should be zero-padded, not blank-padded
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegrunt committed Apr 6, 2013
1 parent fa5195d commit a589af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hmac/signer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def sign_request(url, secret, opts = {})
headers = opts[:headers] || {}

date = opts[:date] || Time.now.gmtime
date = date.gmtime.strftime('%a, %e %b %Y %T GMT') if date.respond_to? :strftime
date = date.gmtime.strftime('%a, %d %b %Y %T GMT') if date.respond_to? :strftime

method = opts[:method] ? opts[:method].to_s.upcase : "GET"

Expand Down

0 comments on commit a589af9

Please sign in to comment.