mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #31001 from eugeneius/rm_x_post_data_format_doc
Remove mention of X-Post-Data-Format header [ci skip]
This commit is contained in:
commit
81d4834a85
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