Permalink
Browse files

Header values should be strings.

  • Loading branch information...
1 parent 62576bc commit 5ccb87196bc962c1423653df2b86eb52f8ba56ed @nz nz committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 websolr-advanced-auth.md
View
@@ -48,7 +48,7 @@ def auth_headers(secret=ENV['WEBSOLR_AUTH'])
nonce = Time.now.to_i.to_s.split(//).sort_by{rand}.join
auth = OpenSSL::HMAC.hexdigest('sha1', secret, "#{time}#{nonce}")
{
- 'X-Websolr-Time' => time,
+ 'X-Websolr-Time' => time.to_s,
'X-Websolr-Nonce' => nonce,
'X-Websolr-Auth' => auth
}

0 comments on commit 5ccb871

Please sign in to comment.