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

Update proxy.py

Browse files
Files changed (1) hide show
  1. proxy.py +2 -1
proxy.py CHANGED
@@ -4,8 +4,9 @@ import cloudscraper
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'}
 
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'}