From d898f9e55cc294d5f4338c443e76220349f9093b Mon Sep 17 00:00:00 2001 From: Eugene Kenny Date: Sat, 28 Oct 2017 00:39:00 +0100 Subject: 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. --- actionpack/lib/action_dispatch/http/mime_negotiation.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'actionpack/lib/action_dispatch') 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") =~ /^([^,\;]*)/ -- cgit v1.2.3