Mercurial > hg > orthanc
comparison Core/HttpServer/HttpOutput.cpp @ 1645:1558b3226b18
IHttpExceptionFormatter
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Sep 2015 15:55:17 +0200 |
parents | d73124f6b439 |
children | b7da58699f92 |
comparison
equal
deleted
inserted
replaced
1644:939b921b2c81 | 1645:1558b3226b18 |
---|---|
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 | 305 stateMachine_.SendBody(message, messageSize); |
306 if (describeErrors_) | |
307 { | |
308 stateMachine_.SendBody(message, messageSize); | |
309 } | |
310 else | |
311 { | |
312 stateMachine_.SendBody(NULL, 0); | |
313 } | |
314 } | 306 } |
315 | 307 |
316 | 308 |
317 void HttpOutput::Redirect(const std::string& path) | 309 void HttpOutput::Redirect(const std::string& path) |
318 { | 310 { |