mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2026-01-08 21:14:14 +00:00
Fix HTTP content type for appassets
This commit is contained in:
parent
2bcb713b82
commit
83da80f631
@ -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…
Reference in New Issue
Block a user