aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorKelley Reynolds <kelley@insidesystems.net>2014-03-28 13:19:47 -0400
committerKelley Reynolds <kelley@insidesystems.net>2014-03-28 13:19:47 -0400
commite43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc (patch)
treef8f8d19f5f40bf4b368523ba5525b1bd75182f90 /actionpack/lib/action_controller
parent74d7df175c83e73347114c004ff861aec0572928 (diff)
downloadrails-e43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc.tar.gz
rails-e43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc.tar.bz2
rails-e43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc.zip
Replace trivial regexp with string or index, twice as fast
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/http_authentication.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb
index 1acc19d74b..2eb7853aa6 100644
--- a/actionpack/lib/action_controller/metal/http_authentication.rb
+++ b/actionpack/lib/action_controller/metal/http_authentication.rb
@@ -96,7 +96,7 @@ module ActionController
end
def user_name_and_password(request)
- decode_credentials(request).split(/:/, 2)
+ decode_credentials(request).split(':', 2)
end
def decode_credentials(request)