diff --git a/server/go/camlistored/ui/blobinfo.js b/server/go/camlistored/ui/blobinfo.js
index 6f1ecbdc1..58eed4e9e 100644
--- a/server/go/camlistored/ui/blobinfo.js
+++ b/server/go/camlistored/ui/blobinfo.js
@@ -35,7 +35,7 @@ function blobInfoUpdate(bmap) {
return;
}
blobpre.innerHTML = JSON.stringify(binfo, null, 2);
- if (binfo.camliType) {
+ if (binfo.camliType || (binfo.type && binfo.type.indexOf("text/") == 0)) {
camliGetBlobContents(
blobref,
{
@@ -56,8 +56,9 @@ function blobInfoUpdate(bmap) {
fail: alert
});
} else {
- document.getElementById("blobdata").innerHTML = "Unknown/binary data; download";
+ document.getElementById("blobdata").innerHTML = "Unknown/binary data";
}
+ bd.innerHTML = "download";
if (binfo.camliType && binfo.camliType == "permanode") {
var claims = document.getElementById("claimsdiv");