提交 d898f9e5 编写于 作者: E Eugene Kenny

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.
上级 df505fb8
......@@ -12,9 +12,6 @@ module MimeNegotiation
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") =~ /^([^,\;]*)/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册