I never said that the CRLF is part of the header name. My question was if the header name token could be proceeded by LWS, or
the header name token always be at the beginning of a new line.
as rob@netrake said:
RFC-3261 does not specifically ALLOW the name token to be proceeded by LWS, i.e. the definition of message-header per ABNF is:
message-header = (Accept / .... / extension-header) CRLF
Therefore, the header name token MUST always be at the beginning of a new line.
and as robert sparks said:
in other words, a SIP header ALWAYS starts with a token (all of the existing headers are tokens), which can NEVER contain leading whitespace.The grammar answers that. extension-header starts with a token.