Prettier JSON claims from web UI.

Fixes https://code.google.com/p/camlistore/issues/detail?id=162

Change-Id: I0a154c267665d189d43b0742047a8229bf627e65
This commit is contained in:
Brad Fitzpatrick 2013-06-26 11:07:18 -07:00
parent 1e0b16cccf
commit 909d310e2f
1 changed files with 8 additions and 1 deletions

View File

@ -342,7 +342,14 @@ function(clearObj, success, opt_fail) {
}
clearObj.camliSigner = sigConf.publicKeyBlobRef;
clearText = JSON.stringify(clearObj);
var camVersion = clearObj.camliVersion;
if (camVersion) {
delete clearObj.camliVersion;
}
var clearText = JSON.stringify(clearObj, null, " ");
if (camVersion) {
clearText = "{\"camliVersion\":" + camVersion + ",\n" + clearText.substr("{\n".length);
}
this.sendXhr_(
sigConf.signHandler,