8 ms·
Shouldn't the spec define a way to _encode_ the name/value in such a way that any string can be used as a header name/value? Then `addHeader` is responsible for
by valtron 13y ago
Shouldn't the spec define a way to _encode_ the name/value in such a way that any string can be used as a header name/value? Then `addHeader` is responsible for handling encoding. For example, if I had a method that takes a name/value argument and converts them into "name=value" syntax to use in a URL query, I would consider it a bug if it didn't url-encode name and value.