Browse Source

Merge pull request #14867 from cnizzardini/4.next-hal-and-jsonld-mimetypes

Adds hal+json, hal+xml, and ld+json #14796
Mark Story 5 years ago
parent
commit
fe8c1dfb73
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Http/Response.php

+ 3 - 0
src/Http/Response.php

@@ -167,6 +167,8 @@ class Response implements ResponseInterface
         'gz' => 'application/x-gzip',
         'bz2' => 'application/x-bzip',
         '7z' => 'application/x-7z-compressed',
+        'hal+json' => ['application/hal+json', 'application/vnd.hal+json'],
+        'hal+xml' => ['application/hal+xml', 'application/vnd.hal+xml'],
         'hdf' => 'application/x-hdf',
         'hqx' => 'application/mac-binhex40',
         'ico' => 'image/x-icon',
@@ -175,6 +177,7 @@ class Response implements ResponseInterface
         'js' => 'application/javascript',
         'jsonapi' => 'application/vnd.api+json',
         'latex' => 'application/x-latex',
+        'jsonld' => 'application/ld+json',
         'lha' => 'application/octet-stream',
         'lsp' => 'application/x-lisp',
         'lzh' => 'application/octet-stream',