changeset 969:48710d53086f toa2019082901

Removed Cache-Control header from POST request
author Benjamin Golinvaux <bgo@osimis.io>
date Thu, 29 Aug 2019 10:40:32 +0200
parents 7dd340d36fd4
children c3961b6cee17
files Framework/Loaders/DicomStructureSetLoader.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Loaders/DicomStructureSetLoader.cpp	Wed Aug 28 10:55:16 2019 +0200
+++ b/Framework/Loaders/DicomStructureSetLoader.cpp	Thu Aug 29 10:40:32 2019 +0200
@@ -211,8 +211,12 @@
         command->SetUri("/tools/lookup");
         command->SetMethod(Orthanc::HttpMethod_Post);
         command->SetBody(*it);
+        
+        // The following headers have been commented out because
+        // they were causing issues in the reverse proxy in a dev scenario.
+        // They should NOT be required for POST requests
         //command->SetHttpHeader("pragma", "no-cache");
-        command->SetHttpHeader("cache-control", "no-cache");
+        //command->SetHttpHeader("cache-control", "no-cache");
 #if 0
         std::string itStr(*it);
         if(itStr == "1.3.12.2.1107.5.1.4.66930.30000018062412550879500002198") {