diff --git a/server/go/camlistored/ui/blobinfo.js b/server/go/camlistored/ui/blobinfo.js
index 05b3459d0..ba5c9ed5b 100644
--- a/server/go/camlistored/ui/blobinfo.js
+++ b/server/go/camlistored/ui/blobinfo.js
@@ -43,7 +43,7 @@ function blobInfoUpdate(bmap) {
fail: alert
});
} else {
- document.getElementById("blobdata").innerHTML = "Unknown/binary data; download";
+ document.getElementById("blobdata").innerHTML = "Unknown/binary data; download";
}
}
diff --git a/server/go/camlistored/ui/camli.js b/server/go/camlistored/ui/camli.js
index f674a772b..403b3a152 100644
--- a/server/go/camlistored/ui/camli.js
+++ b/server/go/camlistored/ui/camli.js
@@ -108,11 +108,14 @@ function camliGetBlobContents(blobref, opts) {
}
opts.success(xhr.responseText);
};
- var path = disco.blobRoot + "camli/" + blobref;
- xhr.open("GET", path, true);
+ xhr.open("GET", camliBlobURL(blobref), true);
xhr.send();
}
+function camliBlobURL(blobref) {
+ return disco.blobRoot + "camli/" + blobref;
+}
+
function camliSign(clearObj, opts) {
opts = saneOpts(opts);