Permalink
Browse files

Fix syntax error on ruby 1.8

  • Loading branch information...
1 parent f391bd6 commit ca0b75e3a678389d00ae8efb3e4ed5728d28e9cd @drbrain committed Apr 3, 2011
Showing with 8 additions and 4 deletions.
  1. +6 −1 History.txt
  2. +0 −1 Rakefile
  3. +2 −2 lib/net/http/digest_auth.rb
View
@@ -1,4 +1,9 @@
-=== 1.1
+=== 1.1.1 / 2011-04-03
+
+* Bug fix
+ * Fix syntax error on ruby 1.8
+
+=== 1.1 / 2011-03-29
* Minor enhancements
* Add support for SHA1, SHA2, SHA256, SHA384, SHA512, RMD160 algorithms
View
@@ -17,7 +17,6 @@ Hoe.spec 'net-http-digest_auth' do
'docs.seattlerb.org:/data/www/docs.seattlerb.org/net-http-digest_auth/'
rdoc_locations <<
'rubyforge.org:/var/www/gforge-projects/seattlerb/net-http-digest_auth/'
-
end
# vim: syntax=Ruby
@@ -41,7 +41,7 @@ class Error < RuntimeError; end
##
# Version of Net::HTTP::DigestAuth you are using
- VERSION = '1.1'
+ VERSION = '1.1.1'
##
# Creates a new DigestAuth header creator.
@@ -111,7 +111,7 @@ def auth_header uri, www_authenticate, method, iis = false
ha2 = algorithm.hexdigest "#{method}:#{uri.request_uri}"
request_digest = [ha1, params['nonce']]
- request_digest.push ('%08x' % @nonce_count), @cnonce, qop if qop
+ request_digest.push(('%08x' % @nonce_count), @cnonce, qop) if qop
request_digest << ha2
request_digest = request_digest.join ':'

0 comments on commit ca0b75e

Please sign in to comment.