diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-10-28 14:47:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-28 14:47:50 +0900 |
commit | 81d4834a8565d5fa678b28c4e886cab1be04791a (patch) | |
tree | 43ca6f9c320d9823cc11ff4d3170a3361422e28f | |
parent | 50f697664edf0d2deff22f3f1a1c8e01d54a74ca (diff) | |
parent | d898f9e55cc294d5f4338c443e76220349f9093b (diff) | |
download | rails-81d4834a8565d5fa678b28c4e886cab1be04791a.tar.gz rails-81d4834a8565d5fa678b28c4e886cab1be04791a.tar.bz2 rails-81d4834a8565d5fa678b28c4e886cab1be04791a.zip |
Merge pull request #31001 from eugeneius/rm_x_post_data_format_doc
Remove mention of X-Post-Data-Format header [ci skip]
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_negotiation.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_negotiation.rb b/actionpack/lib/action_dispatch/http/mime_negotiation.rb index 0ca18d98a1..d7435fa8df 100644 --- a/actionpack/lib/action_dispatch/http/mime_negotiation.rb +++ b/actionpack/lib/action_dispatch/http/mime_negotiation.rb @@ -12,9 +12,6 @@ module ActionDispatch end # The MIME type of the HTTP request, such as Mime[:xml]. - # - # For backward compatibility, the post \format is extracted from the - # X-Post-Data-Format HTTP header if present. def content_mime_type fetch_header("action_dispatch.request.content_type") do |k| v = if get_header("CONTENT_TYPE") =~ /^([^,\;]*)/ |