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