Mercurial > hg > orthanc-authorization
changeset 67:5281a859248d
fix performance warning
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 17 Feb 2023 14:39:04 +0100 |
parents | b7fd466764cc |
children | 1a13c4fbc9a1 |
files | Plugin/AuthorizationWebService.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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,