mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-21 15:43:28 +01:00
Merge branch 'feature/KASM-6279_downloads_mimetype' into 'master'
Set the mimetype of everything under Downloads/ to binary Closes KASM-6279 See merge request kasm-technologies/internal/KasmVNC!141
This commit is contained in:
commit
515a62e0b9
@ -783,6 +783,10 @@ static const char *name2mime(const char *name) {
|
||||
goto def;
|
||||
end++;
|
||||
|
||||
// Everything under Downloads/ should be treated as binary
|
||||
if (strcasestr(name, "Downloads/"))
|
||||
goto def;
|
||||
|
||||
#define CMP(s) if (!strncmp(end, s, sizeof(s) - 1))
|
||||
|
||||
CMP("htm")
|
||||
|
Loading…
Reference in New Issue
Block a user