diff OrthancFramework/Sources/HttpClient.cpp @ 5143:95d8e0540219

avoid double '/' in HttpClient uri
author Alain Mazy <am@osimis.io>
date Wed, 25 Jan 2023 17:56:09 +0100
parents 9d51c000e91a
children 0ea402b4d901
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpClient.cpp	Tue Jan 24 15:05:40 2023 +0100
+++ b/OrthancFramework/Sources/HttpClient.cpp	Wed Jan 25 17:56:09 2023 +0100
@@ -682,7 +682,7 @@
 
     SetPkcs11Enabled(service.IsPkcs11Enabled());
 
-    SetUrl(service.GetUrl() + uri);
+    SetUrl(Toolbox::JoinUri(service.GetUrl(), uri));
 
     for (WebServiceParameters::Dictionary::const_iterator 
            it = service.GetHttpHeaders().begin();