mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-23 22:06:12 +03:00
Update basic.py
This commit is contained in:
parent
99e2216813
commit
37a8ac818c
@ -50,7 +50,7 @@ def test_https_server(hostname, port, proxy=None):
|
||||
cmdline.append(url)
|
||||
print('subprocess.run', ' '.join(cmdline))
|
||||
result = subprocess.run(cmdline, capture_output=True,
|
||||
timeout=1, text=True, encoding='utf-8')
|
||||
timeout=10, text=True, encoding='utf-8')
|
||||
print(result.stderr, end='')
|
||||
return 'Error code: 404' in result.stdout
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user