diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-07 08:30:43 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-07 08:30:43 -0700 |
commit | 2da7bd3688f3a6fd9d5bf746b721b990dd962d4f (patch) | |
tree | 114226784bccd9edecd15bf92e0769df7c0fa3d4 | |
parent | deec4854c0ca8efcfc6fddfd11df1dfb93bb1b82 (diff) | |
parent | 6f2dc4c072e70c81855eac025a0432fc3312a844 (diff) | |
download | rack-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.rb | 2 |
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 |