diff options
author | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2016-12-29 18:22:01 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 18:22:01 +0530 |
commit | af885f108252faa1082784ce1a2eadaf1fe70e55 (patch) | |
tree | 594aa93d3d45332fc5f852ee83b0e4b2980f63ea /actionpack | |
parent | 7ca4b2a76d69d86e1afa92cb0f201f0168815636 (diff) | |
parent | 0a64fb27a1837bc255bd24f18fc75ff6a61f60b9 (diff) | |
download | rails-af885f108252faa1082784ce1a2eadaf1fe70e55.tar.gz rails-af885f108252faa1082784ce1a2eadaf1fe70e55.tar.bz2 rails-af885f108252faa1082784ce1a2eadaf1fe70e55.zip |
Merge pull request #27482 from shardulparab97/patch-8
Update request.rb --ci skip
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index a886358399..943adc1d05 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -85,6 +85,9 @@ module ActionDispatch end end + # Returns true if the request has a header matching the given key parameter. + # + # request.key? :ip_spoofing_check #=> true def key?(key) has_header? key end |