Skip to content

Commit

Permalink
Add application/vnd.api+json as a synonym for application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-thatch committed May 24, 2024
1 parent 8150212 commit 81f4575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/mime_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# https://www.ietf.org/rfc/rfc4627.txt
# http://www.json.org/JSONRequest.html
# https://www.ietf.org/rfc/rfc7807.txt
Mime::Type.register "application/json", :json, %w( text/x-json application/jsonrequest application/problem+json )
Mime::Type.register "application/json", :json, %w( text/x-json application/jsonrequest application/problem+json application/vnd.api+json )

Mime::Type.register "application/pdf", :pdf, [], %w(pdf)
Mime::Type.register "application/zip", :zip, [], %w(zip)
Expand Down

0 comments on commit 81f4575

Please sign in to comment.