Perform stricter checking on the version string (which RFC 7230 says
authorbenno <benno@openbsd.org>
Fri, 5 Nov 2021 19:01:02 +0000 (19:01 +0000)
committerbenno <benno@openbsd.org>
Fri, 5 Nov 2021 19:01:02 +0000 (19:01 +0000)
commitdb043ce82db2757ba8cf428b67e860c6753de1ed
treef94a6e174d21a7092a983d0c5d3e58097bbf71bc
parentb79f6b43c56082321ec0363c51fae4b18c7434de
Perform stricter checking on the version string (which RFC 7230 says
must be "HTTP" "/" DIGIT "." DIGIT), and answer 505 version not
supported when the number is outside of what we support, and 400 bad
request when the version format is wrong.
from Ross L Richardson, thanks!
ok claudio@
usr.sbin/httpd/server_http.c