From 81f4575909d99c73c5ea4a96ddb13091f5770914 Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Fri, 24 May 2024 09:49:11 -0700 Subject: [PATCH] Add `application/vnd.api+json` as a synonym for `application/json` --- actionpack/lib/action_dispatch/http/mime_types.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/http/mime_types.rb b/actionpack/lib/action_dispatch/http/mime_types.rb index 426154fe57dea..58505e3851b81 100644 --- a/actionpack/lib/action_dispatch/http/mime_types.rb +++ b/actionpack/lib/action_dispatch/http/mime_types.rb @@ -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)