node-http-link-header icon indicating copy to clipboard operation
node-http-link-header copied to clipboard

Attribute escaping too aggressive

Open jhermsmeier opened this issue 5 years ago • 0 comments

As of v1.0.3 non-token attributes are escaped a bit too aggressively (see https://github.com/jhermsmeier/node-http-link-header/commit/6bad07ca27092118d97e9cda77ba2143c4daa45e#commitcomment-43076368)

As per RFC 7230, Section 3.2.6:

A sender SHOULD NOT generate a quoted-pair in a quoted-string except where necessary to quote DQUOTE and backslash octets occurring within that string.

jhermsmeier avatar Oct 08 '20 18:10 jhermsmeier