aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpclient.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-23 18:16:57 +0200
committerStefan Boberg <[email protected]>2026-04-23 18:16:57 +0200
commit0232b991cd7d8e3a2114ea30e4591dd3e7b65c36 (patch)
tree94730e7594fd09ae1fa820391ce311f6daf13905 /src/zenhttp/httpclient.cpp
parentFix forward declaration order for s_GotSigWinch and SigWinchHandler (diff)
parenttrace: declare Region event name fields as AnsiString (#1012) (diff)
downloadarchived-zen-sb/zen-help.tar.xz
archived-zen-sb/zen-help.zip
Merge branch 'main' into sb/zen-helpsb/zen-help
- Combine HelpCommand (this branch) with HistoryCommand (main) in zen CLI dispatcher - Keep filter-aware TuiPickOne rewrite; adopt main's ASCII arrow glyphs in doc comment
Diffstat (limited to 'src/zenhttp/httpclient.cpp')
-rw-r--r--src/zenhttp/httpclient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenhttp/httpclient.cpp b/src/zenhttp/httpclient.cpp
index ace7a3c7f..9d5846f71 100644
--- a/src/zenhttp/httpclient.cpp
+++ b/src/zenhttp/httpclient.cpp
@@ -305,6 +305,7 @@ HttpClient::Response::ToText() const
case ZenContentType::kJavaScript:
case ZenContentType::kJSON:
case ZenContentType::kText:
+ case ZenContentType::kXML:
case ZenContentType::kYAML:
return std::string{AsText()};
@@ -520,7 +521,7 @@ MeasureLatency(HttpClient& Client, std::string_view Url)
ErrorMessage = MeasureResponse.ErrorMessage(fmt::format("Unable to measure latency using {}", Url));
// Connection-level failures (timeout, refused, DNS) mean the endpoint is unreachable.
- // Bail out immediately — retrying will just burn the connect timeout each time.
+ // Bail out immediately - retrying will just burn the connect timeout each time.
if (MeasureResponse.Error && MeasureResponse.Error->IsConnectionError())
{
break;