comparison Core/HttpServer/HttpOutput.cpp @ 1592:d73124f6b439

configuration option HttpDescribeErrors
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Aug 2015 11:35:16 +0200
parents 9c5d93510414
children 1558b3226b18
comparison
equal deleted inserted replaced
1591:cd9d99fe32e9 1592:d73124f6b439
300 throw OrthancException(ErrorCode_ParameterOutOfRange); 300 throw OrthancException(ErrorCode_ParameterOutOfRange);
301 } 301 }
302 302
303 stateMachine_.ClearHeaders(); 303 stateMachine_.ClearHeaders();
304 stateMachine_.SetHttpStatus(status); 304 stateMachine_.SetHttpStatus(status);
305 stateMachine_.SendBody(message, messageSize); 305
306 if (describeErrors_)
307 {
308 stateMachine_.SendBody(message, messageSize);
309 }
310 else
311 {
312 stateMachine_.SendBody(NULL, 0);
313 }
306 } 314 }
307 315
308 316
309 void HttpOutput::Redirect(const std::string& path) 317 void HttpOutput::Redirect(const std::string& path)
310 { 318 {