You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# `Content-Type` header is removed because the information would be duplicated
82
+
# since it's already present in `request[:request_content_type]`.
83
+
defremove_content_type(headers)
84
+
returnunlessheaders
85
+
headers
86
+
.split("\n")
87
+
.reject{ |header|
88
+
header.start_with?('Content-Type:')
89
+
}
90
+
.join("\n")
91
+
end
92
+
81
93
# JSON requests should use UTF-8 by default according to
82
94
# http://www.ietf.org/rfc/rfc4627.txt, so we will remove `charset=utf-8`
0 commit comments