Mercurial > hg > orthanc
diff Core/RestApi/RestApiOutput.cpp @ 1519:8bd0d897763f
refactoring: IHttpStreamAnswer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2015 13:15:16 +0200 |
parents | eb46cc06389a |
children | 3606278d305e |
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.cpp Tue Aug 11 10:36:05 2015 +0200 +++ b/Core/RestApi/RestApiOutput.cpp Tue Aug 11 13:15:16 2015 +0200 @@ -78,10 +78,10 @@ } - void RestApiOutput::AnswerFile(HttpFileSender& sender) + void RestApiOutput::AnswerStream(IHttpStreamAnswer& stream) { CheckStatus(); - sender.Send(output_); + output_.Answer(stream); alreadySent_ = true; }