Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(doc, req) {
- var result = { headers : { "Content-Type" : "application/json" }, { "Content-Transfer-Encoding" : "gzip" } };
- // create zip file
- var zip = new JSZip("DEFLATE");
- zip.add("foo.json", doc);
- result.base64 = zip.generate();
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement