mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
fix oops
This commit is contained in:
parent
95b2b86487
commit
b28f9b9fb7
2
setup.py
2
setup.py
@ -51,7 +51,7 @@ except:
|
||||
|
||||
setuptools.setup(
|
||||
name='warcprox',
|
||||
version='2.2.1b2.dev119',
|
||||
version='2.2.1b2.dev120',
|
||||
description='WARC writing MITM HTTP/S proxy',
|
||||
url='https://github.com/internetarchive/warcprox',
|
||||
author='Noah Levitt',
|
||||
|
@ -550,12 +550,11 @@ class PooledMitmProxy(PooledMixIn, MitmProxy):
|
||||
|
||||
def __init__(self, max_threads, options=warcprox.Options()):
|
||||
PooledMixIn.__init__(self, max_threads)
|
||||
self.profilers = {}
|
||||
|
||||
if options.profile:
|
||||
self.profilers = {}
|
||||
self.process_request_thread = self._profile_process_request_thread
|
||||
else:
|
||||
self.profilers
|
||||
self.process_request_thread = self._process_request_thread
|
||||
|
||||
def _profile_process_request_thread(self, request, client_address):
|
||||
|
Loading…
x
Reference in New Issue
Block a user