edwagbb commited on
Commit
c08916d
·
1 Parent(s): 9db2cbd

Update proxy.py

Browse files
Files changed (1) hide show
  1. proxy.py +1 -2
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>://<path:url>', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'])
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'}