comparison OrthancStone/Sources/Loaders/DicomSource.cpp @ 1761:28755e42c007

Fix issue #197 (Support for passing credentials with all HTTP requests)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 May 2021 11:51:53 +0200
parents 9ac2a65d4172
children ca85b6d60bca
comparison
equal deleted inserted replaced
1760:e38b9875a969 1761:28755e42c007
393 else 393 else
394 { 394 {
395 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); 395 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
396 } 396 }
397 } 397 }
398
399
400 void DicomSource::AddHttpHeader(const std::string& header,
401 const std::string& value)
402 {
403 if (type_ == DicomSourceType_Orthanc ||
404 type_ == DicomSourceType_DicomWeb ||
405 type_ == DicomSourceType_DicomWebThroughOrthanc)
406 {
407 webService_.AddHttpHeader(header, value);
408 }
409 else
410 {
411 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadParameterType);
412 }
413 }
398 } 414 }