HTTP: fixed status line format for unknown status codes.

According to Section #3.1.2 of RFC 7230, after the status code
there must be a space even if the reason phrase is empty.

Also, only 3 digits allowed.

This closes #507 issue on GitHub.
This commit is contained in:
Valentin Bartenev
2020-12-07 18:50:56 +03:00
parent db42527b1b
commit bda76b04e9
2 changed files with 26 additions and 17 deletions

View File

@@ -9,6 +9,12 @@
date="" time="18:00:00 +0300"
packager="Andrei Belov <defan@nginx.com>">
<change type="bugfix">
<para>
invalid HTTP responses were generated for some unusual status codes.
</para>
</change>
</changes>