W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2020

draft-ietf-httpbis-header-structure-15.txt, 4.1.6. Serializing a String

From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Date: Sun, 16 Feb 2020 19:38:16 +0200 (EET)
To: HTTP Working Group <ietf-http-wg@w3.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, Mark Nottingham <mnot@mnot.net>, Poul-Henning Kamp <phk@varnish-cache.org>
Message-Id: <20200216173823.C7E9B45BF3@welho-filter4.welho.com>
4.1.6.  Serializing a String

Output is restricted ASCII, but this alogrithm seems not say that
input_string is limited to ASCII

|   Given a string as input_string, return an ASCII string suitable for
|   use in a HTTP header value.
|   1.  If input_string is not a sequence of characters, or contains
|       characters in the range %x00-1f or %x7f (i.e., is not in VCHAR or
|       SP), fail serialisation.

In other words, should this fail serialization if input_string is not
ASCII string ?

Now failing is implicit, because there is just

|       2.  Append char to output.

And if char is not ASCII then "return an ASCII string" part
is violated.

/ Kari Hurtta
Received on Sunday, 16 February 2020 17:38:39 UTC

This archive was generated by hypermail 2.4.0 : Sunday, 16 February 2020 17:38:40 UTC