summaryrefslogtreecommitdiff
path: root/lib/webrick/httpauth/digestauth.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/httpauth/digestauth.rb')
-rw-r--r--lib/webrick/httpauth/digestauth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpauth/digestauth.rb b/lib/webrick/httpauth/digestauth.rb
index 018989e6dd..98bdbd10c7 100644
--- a/lib/webrick/httpauth/digestauth.rb
+++ b/lib/webrick/httpauth/digestauth.rb
@@ -312,7 +312,7 @@ module WEBrick
def generate_next_nonce(req)
now = "%012d" % req.request_time.to_i
pk = hexdigest(now, @instance_key)[0,32]
- nonce = [now + ":" + pk].pack("m*").chop # it has 60 length of chars.
+ nonce = [now + ":" + pk].pack("m0") # it has 60 length of chars.
nonce
end