0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::server: Pass along remote's error content into our http::error.

This commit is contained in:
Jason Volk 2018-02-27 01:38:34 -08:00
parent fc3b68b9e9
commit 34ad473bdc

View file

@ -2126,7 +2126,12 @@ ircd::server::tag::set_value(args&&... a)
assert(request->opts);
if(request->opts->http_exceptions && code >= http::code(300))
{
set_exception(http::error{code});
const string_view content
{
data(request->in.content), size(request->in.content)
};
set_exception(http::error{code, std::string{content}});
return;
}