diff --git a/common/network/websocket.c b/common/network/websocket.c index cdedda4..bd231d2 100644 --- a/common/network/websocket.c +++ b/common/network/websocket.c @@ -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")