Skip to content

status-line ABNF and SP reason-phrase #197

@mnot

Description

@mnot

The ABNF for status-line is currently:

status-line = HTTP-version SP status-code SP reason-phrase CRLF
reason-phrase  = *( HTAB / SP / VCHAR / obs-text )

I.e., reason-phrase can be empty, but the SP before it is still required.

it appears that some parsers generate an error if this SP is not present, while others do not. Suggest instead:

status-line = HTTP-version SP status-code [ SP reason-phrase ] CRLF
reason-phrase  = 1*( HTAB / SP / VCHAR / obs-text )

?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions