Fix HTTP content type for appassets
This commit is contained in:
parent
2bcb713b82
commit
83da80f631
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue