[squid-dev] [PATCH] Handling syntactically valid requests with higher-than-supported HTTP versions

Amos Jeffries squid3 at treenet.co.nz
Sun Sep 25 22:23:21 UTC 2016


Okay finally got to this. Sorry for the delay.

I think what confused me was the handling of the !multiDigits cases.

For the RequestParser::parseVersionField() the relevant bits are:

If a version label matches the "HTTP/" 1*DIGIT "." 1*DIGIT pattern from
RFC 2616 it should not be handled as 0.9 syntax. All unacceptible
versions that begin with "HTTP/" should get a 505.

To be compliant with RFC 7230:

- versions 1.2 thru 1.9 accept and handle normally. That is a SHOULD
requirement in section 2.6 final paragraph (bottom of page 15).

- other single-digit versions should get the 505 error.

- versions with multiple digits should get the 505 error.

Amos



More information about the squid-dev mailing list