Opened 4 years ago

Last modified 4 years ago

#29662 closed Cleanup/optimization

Test client should accept json types with structured suffixes — at Version 2

Reported by: Marnanel Thurman Owned by: nobody
Component: Testing framework Version: 2.1
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Ramiro Morales)

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:
An example in the official registry:

Issue #27622 provided a partial fix but allowed only vendor-specific prefixes.

Change History (2)

comment:1 Changed 4 years ago by Claude Paroz

Has patch: set
Needs tests: set
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

comment:2 Changed 4 years ago by Ramiro Morales

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top