Mercurial > hg > orthanc-stone
diff Framework/Deprecated/Toolbox/OrthancApiClient.cpp @ 940:861c080ef47b
handling httpStatus in WebService error messages
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Fri, 02 Aug 2019 17:38:31 +0200 |
parents | debb70fa10b5 |
children | e146743f6cdc 2d8ab34c8c91 |
line wrap: on
line diff
--- a/Framework/Deprecated/Toolbox/OrthancApiClient.cpp Mon Jul 22 14:29:23 2019 +0200 +++ b/Framework/Deprecated/Toolbox/OrthancApiClient.cpp Fri Aug 02 17:38:31 2019 +0200 @@ -79,7 +79,7 @@ if (failureHandler_.get() != NULL) { failureHandler_->Apply(IWebService::HttpRequestErrorMessage - (message.GetUri(), userPayload_.get())); + (message.GetUri(), Orthanc::HttpStatus_None, userPayload_.get())); } } @@ -176,7 +176,7 @@ if (failureHandler_.get() != NULL) { failureHandler_->Apply(IWebService::HttpRequestErrorMessage - (message.GetUri(), userPayload_.get())); + (message.GetUri(), message.GetHttpStatus(), userPayload_.get())); } } };