Skip to content

Commit 2b49899

Browse files
author
Yohan Robert
committed
Merge pull request #1712 from bf4/fix_jsonapi_response_header
Setting the content_type sets the response Content-Type
2 parents 0433869 + 05fd596 commit 2b49899

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/active_model_serializers/register_jsonapi_renderer.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def serialize_jsonapi(json, options)
5757
ActionController::Renderers.add :jsonapi do |json, options|
5858
json = serialize_jsonapi(json, options).to_json(options) unless json.is_a?(String)
5959
self.content_type ||= media_type
60-
headers.merge! ActiveModelSerializers::Jsonapi::HEADERS[:response]
6160
self.response_body = json
6261
end
6362

0 commit comments

Comments
 (0)