mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
ircd::server: Pass along remote's error content into our http::error.
This commit is contained in:
parent
fc3b68b9e9
commit
34ad473bdc
1 changed files with 6 additions and 1 deletions
|
@ -2126,7 +2126,12 @@ ircd::server::tag::set_value(args&&... a)
|
||||||
assert(request->opts);
|
assert(request->opts);
|
||||||
if(request->opts->http_exceptions && code >= http::code(300))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue