mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Fix HTTP content type for appassets
This commit is contained in:
committed by
GitHub
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user