diff --git a/modules/block_requests.py b/modules/block_requests.py index 29fc6633..5a4b533f 100644 --- a/modules/block_requests.py +++ b/modules/block_requests.py @@ -40,7 +40,7 @@ def my_get(url, **kwargs): # Kindly provided by our friend WizardLM-30B def my_open(*args, **kwargs): filename = str(args[0]) - if filename.endswith('index.html'): + if filename.endswith(('index.html', 'share.html')): with original_open(*args, **kwargs) as f: file_contents = f.read()