Mercurial > hg > orthanc
comparison Core/RestApi/RestApiOutput.cpp @ 1100:f21f7783f934
fix RestApiOutput
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 Aug 2014 10:11:43 +0200 |
parents | 648bf1457113 |
children | ba5c0908600c |
comparison
equal
deleted
inserted
replaced
1099:060e8918d7a4 | 1100:f21f7783f934 |
---|---|
47 alreadySent_ = false; | 47 alreadySent_ = false; |
48 } | 48 } |
49 | 49 |
50 RestApiOutput::~RestApiOutput() | 50 RestApiOutput::~RestApiOutput() |
51 { | 51 { |
52 if (!alreadySent_) | |
53 { | |
54 output_.SendHeader(HttpStatus_400_BadRequest); | |
55 } | |
56 } | 52 } |
57 | 53 |
58 void RestApiOutput::CheckStatus() | 54 void RestApiOutput::CheckStatus() |
59 { | 55 { |
60 if (alreadySent_) | 56 if (alreadySent_) |