Added checks for buffer
Merge branch 'gzip' of https://github.com/soymo/node-compress-buffer into gzip