r_q.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:XssScan-v1.1 作者: dineshbarai 项目源码 文件源码
def ch_en(self,response):
        if response.info().get('Content-Encoding') == 'gzip' or response.info().get('Content-Encoding') == 'x-gzip':
            buf = StringIO(response.read())
            f = gzip.GzipFile(fileobj=buf)
            data = f.read()
        elif response.info().get('Content-Encoding') == 'deflate':
            f = StringIO.StringIO(zlib.decompress(response.read()))
            data = f.read()
        else:
            data = response.read()
        return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号