0
0
Fork 0
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:
Jason Volk 2019-03-22 18:15:23 -07:00
parent 5ca54b06d1
commit 86759ecc15

View file

@ -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)