 util = require('util');
 zlib = require('zlib');
+gunzip = require('zlib').createGunzip()
 http = require 'http'
 https = require 'https'
 net = require 'net'

		response.status = routeRes.statusCode
		response.headers = routeRes.headers

		bufs = []
		routeRes.on "data", (chunk) ->
			bufs.push chunk

			response.timestamp = new Date()
			charset = obtainCharset(routeRes.headers)
			if routeRes.headers['content-encoding'] == 'gzip'
				gunzip.on "end", ->
					response.body = uncompressedBody
					if not defered.promise.isRejected()
						defered.resolve response
					return
			else if routeRes.headers['content-encoding'] == 'deflate'
				zlib.inflate(
					Buffer.concat bufs,
