diff OrthancServer/Scheduler/StorePeerCommand.cpp @ 2019:9c9332e486ca

HTTPS client certificates can be associated with Orthanc peers to enhance security over Internet
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 14 Jun 2016 17:53:23 +0200
parents ce90d109bb64
children a0bd8cd55da7
line wrap: on
line diff
--- a/OrthancServer/Scheduler/StorePeerCommand.cpp	Tue Jun 14 15:51:00 2016 +0200
+++ b/OrthancServer/Scheduler/StorePeerCommand.cpp	Tue Jun 14 17:53:23 2016 +0200
@@ -52,12 +52,7 @@
   {
     // Configure the HTTP client
     HttpClient client;
-    if (peer_.GetUsername().size() != 0 && 
-        peer_.GetPassword().size() != 0)
-    {
-      client.SetCredentials(peer_.GetUsername().c_str(), 
-                            peer_.GetPassword().c_str());
-    }
+    peer_.ConfigureClient(client);
 
     client.SetUrl(peer_.GetUrl() + "instances");
     client.SetMethod(HttpMethod_Post);