diff options
author | Rafael França <rafael@franca.dev> | 2019-10-09 12:06:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 12:06:08 -0400 |
commit | c9dee790d5845323ae363707af8455ea951f89f0 (patch) | |
tree | bdfd3aefffc5a9e9b9e58e8cd049c90f231fc02a | |
parent | a36ceb60911b826ce8e227056d1699d04ed05dda (diff) | |
parent | 3112999298f3b4580ba44b854a762e3852186cfd (diff) | |
download | rack-c9dee790d5845323ae363707af8455ea951f89f0.tar.gz |
Merge pull request #1397 from styd/split-by-string
Split params by string instead of regex
-rw-r--r-- | lib/rack/auth/basic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/auth/basic.rb b/lib/rack/auth/basic.rb index dfe2ce96..95bbafc4 100644 --- a/lib/rack/auth/basic.rb +++ b/lib/rack/auth/basic.rb @@ -47,7 +47,7 @@ module Rack end def credentials - @credentials ||= params.unpack("m*").first.split(/:/, 2) + @credentials ||= params.unpack("m*").first.split(':', 2) end def username |