comparison Framework/Loaders/DicomStructureSetLoader.cpp @ 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 e3234630df9c
children 262a0244e9b2
comparison
equal deleted inserted replaced
968:7dd340d36fd4 969:48710d53086f
209 LOG(TRACE) << " DicomStructureSetLoader::LoadStructure::Handle() about to schedule /tools/lookup command with LookupInstance on result"; 209 LOG(TRACE) << " DicomStructureSetLoader::LoadStructure::Handle() about to schedule /tools/lookup command with LookupInstance on result";
210 #endif 210 #endif
211 command->SetUri("/tools/lookup"); 211 command->SetUri("/tools/lookup");
212 command->SetMethod(Orthanc::HttpMethod_Post); 212 command->SetMethod(Orthanc::HttpMethod_Post);
213 command->SetBody(*it); 213 command->SetBody(*it);
214
215 // The following headers have been commented out because
216 // they were causing issues in the reverse proxy in a dev scenario.
217 // They should NOT be required for POST requests
214 //command->SetHttpHeader("pragma", "no-cache"); 218 //command->SetHttpHeader("pragma", "no-cache");
215 command->SetHttpHeader("cache-control", "no-cache"); 219 //command->SetHttpHeader("cache-control", "no-cache");
216 #if 0 220 #if 0
217 std::string itStr(*it); 221 std::string itStr(*it);
218 if(itStr == "1.3.12.2.1107.5.1.4.66930.30000018062412550879500002198") { 222 if(itStr == "1.3.12.2.1107.5.1.4.66930.30000018062412550879500002198") {
219 if (logbgo115) 223 if (logbgo115)
220 LOG(ERROR) << "******** BOGUS LOOKUPS FROM NOW ON ***********"; 224 LOG(ERROR) << "******** BOGUS LOOKUPS FROM NOW ON ***********";