Opened 7 years ago
Last modified 7 years ago
#29662 closed Cleanup/optimization
Test client should accept json types with structured suffixes — at Initial Version
Description ¶
The test client's json() method should permit the Content-Type of the response to contain structured suffixes, such as "application/activity+json".
This requires a regexp such as "application\/(.+\+)?json".
See RFC 6838 for the specification: https://tools.ietf.org/html/rfc6838#section-4.2.8
An example in the official registry: https://www.iana.org/assignments/media-types/application/activity+json
Issue #27622 provided a partial fix but allowed only vendor-specific prefixes.