Code snippet added to http compression for node.js