mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
fix this error
File "/home/nlevitt/workspace/warcprox/warcprox/warcproxy.py", line 256, in _proxy_request return recorded_url UnboundLocalError: local variable 'recorded_url' referenced before assignment
This commit is contained in:
parent
918fdd3e9b
commit
422672408a
@ -202,6 +202,7 @@ class WarcProxyHandler(warcprox.mitmproxy.MitmProxyHandler):
|
|||||||
req += self.rfile.read(int(self.headers['Content-Length']))
|
req += self.rfile.read(int(self.headers['Content-Length']))
|
||||||
|
|
||||||
prox_rec_res = None
|
prox_rec_res = None
|
||||||
|
recorded_url = None
|
||||||
try:
|
try:
|
||||||
self.logger.debug('sending to remote server req=%s', repr(req))
|
self.logger.debug('sending to remote server req=%s', repr(req))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user