nitlink icon indicating copy to clipboard operation
nitlink copied to clipboard

Weird Looking Header Readme’s Example Is Not Technically Valid

Open Frizlab opened this issue 6 years ago • 0 comments

AFAICT, as per RFC 8288 and 7230, the value for a parameter, if not double-quoted, must be a token. Valid chars in a tokens are (ABNF):

tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA

In this example, <http://example.com/;;;,,,>; rel="next;;;,,, next"; a-zA-Z0-9!#$&+-.^_|~=!#$%&'()*+-./0-9:<=>?@a-zA-Z[]^_{|}~; title*=UTF-8'de'N%c3%a4chstes%20Kapitel, the expected value for the a-zA-Z0-9!#$&+-.^_|~ key seems to be !#$%&'()*+-./0-9:<=>?@a-zA-Z[]^_{|}~ which is not technically valid (contains parenthesis, brackets, and other invalid chars in a token).

Frizlab avatar Jul 31 '18 10:07 Frizlab