diff Plugin/AuthorizationWebService.cpp @ 67:5281a859248d

fix performance warning
author Alain Mazy <am@osimis.io>
date Fri, 17 Feb 2023 14:39:04 +0100
parents a5f2976fe8a0
children 1a13c4fbc9a1
line wrap: on
line diff
--- a/Plugin/AuthorizationWebService.cpp	Fri Feb 17 14:27:54 2023 +0100
+++ b/Plugin/AuthorizationWebService.cpp	Fri Feb 17 14:39:04 2023 +0100
@@ -111,6 +111,11 @@
     headersValues[headersCount] = "application/json";
     headersCount++;
 
+    // set the correct content type for the outgoing
+    headersKeys[headersCount] = "Expect";
+    headersValues[headersCount] = "";
+    headersCount++;
+
     std::string flatBody = body.toStyledString();
       
     if (OrthancPluginHttpClient(GetGlobalContext(), *answerBody, *answerHeaders,