Spaces:
Paused
Paused
Update proxy.py
Browse files
proxy.py
CHANGED
|
@@ -4,9 +4,8 @@ import cloudscraper
|
|
| 4 |
scraper = cloudscraper.create_scraper(interpreter='nodejs')
|
| 5 |
|
| 6 |
app = Flask(__name__)
|
| 7 |
-
app.url_map.strict_slashes = False
|
| 8 |
|
| 9 |
-
@app.route('/proxy/<scheme
|
| 10 |
def proxy(scheme, url):
|
| 11 |
req_method = request.method
|
| 12 |
req_headers = {key: value for key, value in request.headers if key != 'Host'}
|
|
|
|
| 4 |
scraper = cloudscraper.create_scraper(interpreter='nodejs')
|
| 5 |
|
| 6 |
app = Flask(__name__)
|
|
|
|
| 7 |
|
| 8 |
+
@app.route('/proxy/<scheme>:/<path:url>', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'])
|
| 9 |
def proxy(scheme, url):
|
| 10 |
req_method = request.method
|
| 11 |
req_headers = {key: value for key, value in request.headers if key != 'Host'}
|