diff options
author | jahoti <jahoti@tilde.team> | 2021-09-04 00:00:00 +0000 |
---|---|---|
committer | jahoti <jahoti@tilde.team> | 2021-09-04 00:00:00 +0000 |
commit | 591c48a6903bbf324361610f81c628302cae7049 (patch) | |
tree | 174fee77253b147603966d2e6c40c5ffbb5e3e5a /test/proxy_core.py | |
parent | 6c69435cef6a9cf5fc6bedfcf853d8ab10dc99ec (diff) | |
download | browser-extension-591c48a6903bbf324361610f81c628302cae7049.tar.gz browser-extension-591c48a6903bbf324361610f81c628302cae7049.zip |
Make test suite mildly usable
Allow test/server.py to be run as a command and add some "webpages" for it.
Diffstat (limited to 'test/proxy_core.py')
-rw-r--r-- | test/proxy_core.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/proxy_core.py b/test/proxy_core.py index da90455..dd4225d 100644 --- a/test/proxy_core.py +++ b/test/proxy_core.py @@ -5,7 +5,7 @@ """ The core for a "virtual network" proxy -Be sure to run this inside your intended certificates directory. +Be sure to set certdir to your intended certificates directory before running. """ import os, socket, ssl, subprocess, sys, threading, time @@ -20,8 +20,6 @@ def popen(command, *args, **kwargs): class ProxyRequestHandler(BaseHTTPRequestHandler): """Handles a network request made to the proxy""" - certdir = '' - def log_error(self, format, *args): # suppress "Request timed out: timeout('timed out',)" if isinstance(args[0], socket.timeout): |