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

4.1.6.  Serializing a String
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-15#section-4.1.6
	

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