mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd::client: Fix response code from header parse failure handler.
This commit is contained in:
parent
b3526298a9
commit
15b25894d3
1 changed files with 2 additions and 2 deletions
|
@ -820,7 +820,7 @@ catch(const http::error &e)
|
||||||
{
|
{
|
||||||
log::derror
|
log::derror
|
||||||
{
|
{
|
||||||
resource::log, "%s HTTP 400 BAD REQUEST :%u %s :%s",
|
resource::log, "%s HTTP %u %s :%s",
|
||||||
loghead(),
|
loghead(),
|
||||||
uint(e.code),
|
uint(e.code),
|
||||||
http::status(e.code),
|
http::status(e.code),
|
||||||
|
@ -833,7 +833,7 @@ catch(const http::error &e)
|
||||||
const ctx::exception_handler eh;
|
const ctx::exception_handler eh;
|
||||||
resource::response
|
resource::response
|
||||||
{
|
{
|
||||||
*this, e.content, "text/html; charset=utf-8", http::BAD_REQUEST, e.headers
|
*this, e.content, "text/html; charset=utf-8", e.code, e.headers
|
||||||
};
|
};
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue