You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered recently that the usage of the `profile` Accept header extension
described in the documentation is not a valid accept header extension.
```
Content-Type: application/json; profile=/schema-for-this-data
```
The schema should be within quotes in order the valid.
```
Content-Type: application/json; profile="/schema-for-this-data"
```
This is how the `Content-Type` header is defined
```
Content-Type = "Content-Type" ":" media-type
media-type = type "/" subtype *( ";" parameter )
type = token
subtype = token
parameter = attribute "=" value
attribute = token
value = token | quoted-string
token = 1*<any CHAR except CTLs or separators>
separators = "(" | ")" | "<" | ">" | "@"
| "," | ";" | ":" | "\" | <">
| "/" | "[" | "]" | "?" | "="
| "{" | "}" | SP | HT
```
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2
Therefore, `/schema-for-this-data` is not a valid token because it contains a
`/`. It needs to be expressed as a `quoted-string`. This occurs anywhere
`profile` appears in the documentation.
<sectiontitle='Correlation by means of the "Content-Type" header'>
598
598
<t>
599
599
Instances may also specify a schema using the "profile" MIME type parameter in the Content-Type header, when the MIME type MUST be "application/json", or any other subtype.
0 commit comments