mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove mention of X-Post-Data-Format header [ci skip]
Support for this header was removed when `actionpack-xml_parser` was extracted, and has since been dropped from the gem.
This commit is contained in:
parent
df505fb810
commit
d898f9e55c
1 changed files with 0 additions and 3 deletions
|
@ -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") =~ /^([^,\;]*)/
|
||||
|
|
Loading…
Reference in a new issue