aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-01-29 15:52:48 +0100
committerGitHub <[email protected]>2024-01-29 15:52:48 +0100
commit6d3211775f00a8ef087b05594bd6fe251dd0e5b8 (patch)
treedb9db3b9aa58227b6d08620e601b3baddb2c79e1 /src/zenhttp
parentexception on basicfile read error (#642) (diff)
downloadzen-6d3211775f00a8ef087b05594bd6fe251dd0e5b8.tar.xz
zen-6d3211775f00a8ef087b05594bd6fe251dd0e5b8.zip
fix response error conversion (#643)
* make sure we properly convert compact-binary results to text when receiving errors * log fix
Diffstat (limited to 'src/zenhttp')
-rw-r--r--src/zenhttp/httpclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhttp/httpclient.cpp b/src/zenhttp/httpclient.cpp
index 07f631dac..c9005b1cf 100644
--- a/src/zenhttp/httpclient.cpp
+++ b/src/zenhttp/httpclient.cpp
@@ -1089,7 +1089,7 @@ HttpClient::Response::ErrorMessage(std::string_view Prefix) const
}
else if (StatusCode != HttpResponseCode::ImATeapot && (int)StatusCode)
{
- return fmt::format("{}: HTTP error {} {} ({})", Prefix, (int)StatusCode, zen::ToString(StatusCode), AsText());
+ return fmt::format("{}: HTTP error {} {} ({})", Prefix, (int)StatusCode, zen::ToString(StatusCode), ToText());
}
else
{