diff Core/RestApi/RestApiOutput.h @ 2908:9d277f8ad698

new enumeration: MimeType
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 16:16:07 +0100
parents 878b59270859
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.h	Tue Oct 30 13:53:29 2018 +0100
+++ b/Core/RestApi/RestApiOutput.h	Tue Oct 30 16:16:07 2018 +0100
@@ -75,11 +75,11 @@
     void AnswerJson(const Json::Value& value);
 
     void AnswerBuffer(const std::string& buffer,
-                      const std::string& contentType);
+                      MimeType contentType);
 
     void AnswerBuffer(const void* buffer,
                       size_t length,
-                      const std::string& contentType);
+                      MimeType contentType);
 
     void SignalError(HttpStatus status);