Fix HTTP content type for appassets

This commit is contained in:
Christophe Fajardo 2022-01-23 16:27:31 +01:00 committed by GitHub
parent 2bcb713b82
commit 83da80f631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -770,7 +770,7 @@ void appasset(resp_https_t response, req_https_t request) {
std::ifstream in(app_image, std::ios::binary);
SimpleWeb::CaseInsensitiveMultimap headers;
headers.emplace("Content-Type", image_content_type);
headers.emplace("Content-Type", "image/" + image_content_type);
response->write(SimpleWeb::StatusCode::success_ok, in, headers);
response->close_connection_after_response = true;
}