Skip to content

Commit

Permalink
util.js: consider application/octet-stream mime as unknown to the ser…
Browse files Browse the repository at this point in the history
…ver, so fallback to extension-based heuristic in such case
  • Loading branch information
dos1 committed Apr 6, 2018
1 parent 39eb1ff commit 5bcf488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/chatview/util.js
Expand Up @@ -198,7 +198,7 @@ function initPsiTheme() {
},function(result) {
//chat.console("result ready " + chat.util.props(result, true));
var ct = result['content-type'];
if (typeof(ct) == "string") {
if ((typeof(ct) == "string") && (ct != "application/octet-stream")) {
ct = ct.split("/")[0].trim();
switch (ct) {
case "image":
Expand Down

0 comments on commit 5bcf488

Please sign in to comment.