diff options
author | Konstantin Papkovskiy <konstantin@papkovskiy.com> | 2013-01-17 17:42:49 +0400 |
---|---|---|
committer | Konstantin Papkovskiy <konstantin@papkovskiy.com> | 2013-01-17 17:42:49 +0400 |
commit | bebb02fd1c5ea0e8da9fb61eefcbb6ec8b9ab11f (patch) | |
tree | 8f59d6803978d60b8481ce866dba7e6a34a02d60 /actionpack/lib/action_dispatch/http | |
parent | ee314a5e5aa2b29978b78fbe1b272bcfff865d4a (diff) | |
download | rails-bebb02fd1c5ea0e8da9fb61eefcbb6ec8b9ab11f.tar.gz rails-bebb02fd1c5ea0e8da9fb61eefcbb6ec8b9ab11f.tar.bz2 rails-bebb02fd1c5ea0e8da9fb61eefcbb6ec8b9ab11f.zip |
Fix ActionDispatch::Request#formats when HTTP_ACCEPT header is empty string
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_negotiation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_negotiation.rb b/actionpack/lib/action_dispatch/http/mime_negotiation.rb index 57660e93c4..89a7b12818 100644 --- a/actionpack/lib/action_dispatch/http/mime_negotiation.rb +++ b/actionpack/lib/action_dispatch/http/mime_negotiation.rb @@ -122,7 +122,7 @@ module ActionDispatch def valid_accept_header (xhr? && (accept || content_mime_type)) || - (accept && accept !~ BROWSER_LIKE_ACCEPTS) + (accept.present? && accept !~ BROWSER_LIKE_ACCEPTS) end def use_accept_header |