comparison 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
comparison
equal deleted inserted replaced
66:b7fd466764cc 67:5281a859248d
109 // set the correct content type for the outgoing 109 // set the correct content type for the outgoing
110 headersKeys[headersCount] = "Content-Type"; 110 headersKeys[headersCount] = "Content-Type";
111 headersValues[headersCount] = "application/json"; 111 headersValues[headersCount] = "application/json";
112 headersCount++; 112 headersCount++;
113 113
114 // set the correct content type for the outgoing
115 headersKeys[headersCount] = "Expect";
116 headersValues[headersCount] = "";
117 headersCount++;
118
114 std::string flatBody = body.toStyledString(); 119 std::string flatBody = body.toStyledString();
115 120
116 if (OrthancPluginHttpClient(GetGlobalContext(), *answerBody, *answerHeaders, 121 if (OrthancPluginHttpClient(GetGlobalContext(), *answerBody, *answerHeaders,
117 &httpStatus, OrthancPluginHttpMethod_Post, 122 &httpStatus, OrthancPluginHttpMethod_Post,
118 url_.c_str(), headersCount, headersKeys, headersValues, 123 url_.c_str(), headersCount, headersKeys, headersValues,