From 6305874e6d11a5d0ace7ead25850275862d3bc90 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Fri, 13 Feb 2026 09:17:48 +0100 Subject: [PATCH] Enable redirect for httplib Some targets have changed between versions redirecting to the correct endpoint. For this to work, we'll have to follow redirects, which is not the default for httplib. --- src/ur/dashboard_client_implementation_x.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ur/dashboard_client_implementation_x.cpp b/src/ur/dashboard_client_implementation_x.cpp index 6ac40f78..571a82cc 100644 --- a/src/ur/dashboard_client_implementation_x.cpp +++ b/src/ur/dashboard_client_implementation_x.cpp @@ -47,6 +47,10 @@ namespace urcl DashboardClientImplX::DashboardClientImplX(const std::string& host) : DashboardClientImpl(host) { cli_ = std::make_unique("http://" + host); + + // Some targets have changed between versions redirecting to the correct endpoint. For this to + // work, we'll have to follow redirects, which is not the default for httplib. + cli_->set_follow_location(true); } std::string DashboardClientImplX::sendAndReceive(const std::string& text)