summary refs log tree commit
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2016-04-07 08:30:43 -0700
committerJeremy Daer <jeremydaer@gmail.com>2016-04-07 08:30:43 -0700
commit2da7bd3688f3a6fd9d5bf746b721b990dd962d4f (patch)
tree114226784bccd9edecd15bf92e0769df7c0fa3d4
parentdeec4854c0ca8efcfc6fddfd11df1dfb93bb1b82 (diff)
parent6f2dc4c072e70c81855eac025a0432fc3312a844 (diff)
downloadrack-2da7bd3688f3a6fd9d5bf746b721b990dd962d4f.tar.gz
Merge pull request #1046 from shhavel/feature/micro_refactor_string_scan_in_rack_auth_digest_params_split_header_value
Micro refactor string scan in Rack::Auth::Digest::Params.split_header_value
-rw-r--r--lib/rack/auth/digest/params.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/auth/digest/params.rb b/lib/rack/auth/digest/params.rb
index f35a7bab..52108d82 100644
--- a/lib/rack/auth/digest/params.rb
+++ b/lib/rack/auth/digest/params.rb
@@ -17,7 +17,7 @@ module Rack
         end
 
         def self.split_header_value(str)
-          str.scan( /(\w+\=(?:"[^\"]+"|[^,]+))/n ).collect{ |v| v[0] }
+          str.scan(/\w+\=(?:"[^\"]+"|[^,]+)/n)
         end
 
         def initialize