From 15b25894d3b7e9080bc27f07258a02ba7303e1f3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 13 Mar 2019 12:37:06 -0700 Subject: [PATCH] ircd::client: Fix response code from header parse failure handler. --- ircd/client.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/client.cc b/ircd/client.cc index 806734d74..f2db893f3 100644 --- a/ircd/client.cc +++ b/ircd/client.cc @@ -820,7 +820,7 @@ catch(const http::error &e) { log::derror { - resource::log, "%s HTTP 400 BAD REQUEST :%u %s :%s", + resource::log, "%s HTTP %u %s :%s", loghead(), uint(e.code), http::status(e.code), @@ -833,7 +833,7 @@ catch(const http::error &e) const ctx::exception_handler eh; 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;