minor refactoring and Content-Type header

This commit is contained in:
Christophe Fajardo
2022-01-20 18:10:30 +01:00
parent a9bbadf8ad
commit abf2a5ea4e
3 changed files with 16 additions and 12 deletions

View File

@@ -16,6 +16,8 @@
#include "utility.h"
#define CHECK_EXPECTED_PICTURE_EXTENTIONS(extention) (extention == "png" || extention == "jpg" || extention == "jpeg")
namespace proc {
using file_t = util::safe_ptr_v2<FILE, int, fclose>;
@@ -79,7 +81,7 @@ public:
const std::vector<ctx_t> &get_apps() const;
std::vector<ctx_t> &get_apps();
std::string get_app_image(int app_id);
std::tuple<std::string, std::string> get_app_image(int app_id);
void terminate();