未验证 提交 81d4834a 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #31001 from eugeneius/rm_x_post_data_format_doc

Remove mention of X-Post-Data-Format header [ci skip]
......@@ -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.
先完成此消息的编辑!
想要评论请 注册