Revert "Partly revert unnecessary change in #36996"
This reverts commit 35737465ff
.
This commit is contained in:
parent
3ae59fe14a
commit
85c0f96618
|
@ -426,7 +426,7 @@ module ActionDispatch # :nodoc:
|
|||
if content_type && match = CONTENT_TYPE_PARSER.match(content_type)
|
||||
ContentTypeHeader.new(match[:type], match[:extra], match[:charset])
|
||||
else
|
||||
NullContentTypeHeader
|
||||
ContentTypeHeader.new(content_type, nil)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue