Mercurial > hg > orthanc
comparison Core/HttpServer/StringHttpOutput.cpp @ 1985:3fcea6dc151d
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 25 Apr 2016 14:41:53 +0200 |
parents | b1291df2f780 |
children | b534834a300e |
comparison
equal
deleted
inserted
replaced
1984:9f09a20e41e2 | 1985:3fcea6dc151d |
---|---|
37 | 37 |
38 namespace Orthanc | 38 namespace Orthanc |
39 { | 39 { |
40 void StringHttpOutput::OnHttpStatusReceived(HttpStatus status) | 40 void StringHttpOutput::OnHttpStatusReceived(HttpStatus status) |
41 { | 41 { |
42 if (status != HttpStatus_200_Ok) | 42 if (status != HttpStatus_200_Ok && |
43 status != HttpStatus_404_NotFound) | |
43 { | 44 { |
44 throw OrthancException(ErrorCode_BadRequest); | 45 throw OrthancException(ErrorCode_BadRequest); |
45 } | 46 } |
46 } | 47 } |
47 | 48 |