http-extensions
http-extensions copied to clipboard
HTTP variants example is out of date
The introduction in the variants draft gives the following example:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Language: en
Vary: Accept-Language
Variants: Accept-Language;de;en;jp
Variant-Key: en
Transfer-Encoding: chunked
But the syntax has since changed and now it is a dictionary, as of c392ad8836a21f57d1f175e8a264d881a56720ab:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Language: en
Vary: Accept-Language
Variants: Accept-Language=(de en jp)
Variant-Key: (en)
Transfer-Encoding: chunked
Correction:
Variants: Accept-Language=(de en jp)
Oops, thanks. Not sure how I got the other value. (Edited the original so my mistake doesn't get replicated further.)