1
0
Fork 0
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:
Eugene Kenny 2017-10-28 00:39:00 +01:00
parent df505fb810
commit d898f9e55c

View file

@ -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") =~ /^([^,\;]*)/