mirror of
https://github.com/matrix-construct/construct
synced 2024-06-01 17:48:56 +02:00
ircd::http: Show the unrecognized version string in error message.
This commit is contained in:
parent
5ca54b06d1
commit
86759ecc15
|
@ -287,7 +287,8 @@ ircd::http::request::head::head(parse::capstan &pc,
|
|||
if(this->version != "HTTP/1.1")
|
||||
throw error
|
||||
{
|
||||
HTTP_VERSION_NOT_SUPPORTED, "Sorry, only HTTP/1.1 supported here."
|
||||
HTTP_VERSION_NOT_SUPPORTED, "Sorry, I don't speak '%s' only HTTP/1.1 here."_sv,
|
||||
string_view{this->version}
|
||||
};
|
||||
|
||||
return http::headers{pc, [this, &c](const auto &h)
|
||||
|
|
Loading…
Reference in a new issue