Skip to content

Commit

Permalink
Merge pull request #37743 from bquorning/accept-header-comment
Browse files Browse the repository at this point in the history
Add comment to BROWSER_LIKE_ACCEPTS regex
  • Loading branch information
eileencodes committed Nov 21, 2019
2 parents 2289f26 + 39e3a75 commit 4135f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actionpack/lib/action_dispatch/http/mime_negotiation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def should_apply_vary_header?
end

private
# We use normal content negotiation unless you include */* in your list,
# in which case we assume you're a browser and send HTML.
BROWSER_LIKE_ACCEPTS = /,\s*\*\/\*|\*\/\*\s*,/

def params_readable? # :doc:
Expand Down

0 comments on commit 4135f2d

Please sign in to comment.