diff Core/HttpClient.cpp @ 2800:dc7330089736

"OrthancPeers" configuration option now allows to specify HTTP headers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 23 Aug 2018 13:11:48 +0200
parents 959bd8857eb5
children 807169f85ba9
line wrap: on
line diff
--- a/Core/HttpClient.cpp	Wed Aug 22 16:55:07 2018 +0200
+++ b/Core/HttpClient.cpp	Thu Aug 23 13:11:48 2018 +0200
@@ -400,6 +400,13 @@
     SetPkcs11Enabled(service.IsPkcs11Enabled());
 
     SetUrl(service.GetUrl() + uri);
+
+    for (WebServiceParameters::HttpHeaders::const_iterator 
+           it = service.GetHttpHeaders().begin();
+         it != service.GetHttpHeaders().end(); ++it)
+    {
+      AddHeader(it->first, it->second);
+    }
   }