comparison Core/RestApi/RestApiOutput.cpp @ 215:c07170f3f4f7

refactoring of access to images in REST
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2012 11:25:29 +0100
parents b7aea293b965
children e5d5d4a9a326
comparison
equal deleted inserted replaced
214:03817919169b 215:c07170f3f4f7
80 CheckStatus(); 80 CheckStatus();
81 output_.AnswerBufferWithContentType(buffer, contentType); 81 output_.AnswerBufferWithContentType(buffer, contentType);
82 existingResource_ = true; 82 existingResource_ = true;
83 } 83 }
84 84
85 void RestApiOutput::Redirect(const char* path) 85 void RestApiOutput::Redirect(const std::string& path)
86 { 86 {
87 CheckStatus(); 87 CheckStatus();
88 output_.Redirect(path); 88 output_.Redirect(path);
89 existingResource_ = true; 89 existingResource_ = true;
90 } 90 }