From 5d1a88f89724f96cd0a85d35d7112d18d6de941f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 16 Mar 2020 17:51:12 -0700 Subject: [PATCH] ircd::client: Minor cleanup. --- ircd/client.cc | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/ircd/client.cc b/ircd/client.cc index 1a33a6afc..e67dbdb32 100644 --- a/ircd/client.cc +++ b/ircd/client.cc @@ -825,7 +825,11 @@ catch(const std::system_error &e) const ctx::exception_handler eh; resource::response { - *this, http::REQUEST_TIMEOUT, {}, 0L, {} + *this, + http::REQUEST_TIMEOUT, + {}, + 0L, + {} }; return false; @@ -847,7 +851,11 @@ catch(const http::error &e) const ctx::exception_handler eh; resource::response { - *this, e.content, "text/html; charset=utf-8", e.code, e.headers + *this, + e.content, + "text/html; charset=utf-8", + e.code, + e.headers }; return false; @@ -905,7 +913,11 @@ catch(const http::error &e) resource::response { - *this, e.content, "text/html; charset=utf-8", e.code, e.headers + *this, + e.content, + "text/html; charset=utf-8", + e.code, + e.headers }; switch(e.code) @@ -942,7 +954,10 @@ catch(const std::exception &e) resource::response { - *this, e.what(), "text/html; charset=utf-8", http::INTERNAL_SERVER_ERROR + *this, + e.what(), + "text/html; charset=utf-8", + http::INTERNAL_SERVER_ERROR }; return false;