Skip to content

Commit df03246

Browse files
committed
Update middleware to decompresseFromUTF16
This is to match the compression used in the compressKeys functions on the clientside.
1 parent c7a0bdd commit df03246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ module.exports = {
336336
decompressBody: function (req, res, next) {
337337
if (req.body && req.body.compressed) {
338338
req.body.compressed.split(',').forEach(function (key) {
339-
req.body[key] = LZString.decompress(req.body[key]);
339+
req.body[key] = LZString.decompressFromUTF16(req.body[key]);
340340
});
341341
}
342342
next();

0 commit comments

Comments
 (0)