diff --git a/server/camlistored/ui/server_connection.js b/server/camlistored/ui/server_connection.js index 8eebbedb8..02b1f632b 100644 --- a/server/camlistored/ui/server_connection.js +++ b/server/camlistored/ui/server_connection.js @@ -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,