http-extensions icon indicating copy to clipboard operation
http-extensions copied to clipboard

HTTP variants example is out of date

Open davidben opened this issue 5 years ago • 2 comments

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

davidben avatar Dec 05 '19 21:12 davidben

Correction:

   Variants: Accept-Language=(de en jp)

martinthomson avatar Mar 17 '21 06:03 martinthomson

Oops, thanks. Not sure how I got the other value. (Edited the original so my mistake doesn't get replicated further.)

davidben avatar Mar 17 '21 14:03 davidben