BraydenMoore commited on
Commit
e45d828
·
1 Parent(s): f0d5642

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -69,7 +69,7 @@ from urllib.parse import urlparse, parse_qs
69
  def proxy(url):
70
  start_time = time.time()
71
 
72
- full_url = url.replace("COUNTER",str(random.randint(1,1000000)))
73
  query_string = request.query_string.decode("utf-8")
74
  if query_string:
75
  full_url += "?" + query_string
@@ -87,6 +87,7 @@ def proxy(url):
87
 
88
  clean_url = full_url.replace('proxy/', '')
89
  clean_url = encode_url(clean_url)
 
90
 
91
  try:
92
  req = requests.get(clean_url, headers=headers, stream=True, timeout=2)
 
69
  def proxy(url):
70
  start_time = time.time()
71
 
72
+ full_url = url
73
  query_string = request.query_string.decode("utf-8")
74
  if query_string:
75
  full_url += "?" + query_string
 
87
 
88
  clean_url = full_url.replace('proxy/', '')
89
  clean_url = encode_url(clean_url)
90
+ clean_url = clean_url.replace("COUNTER",str(random.randint(1,1000000)))
91
 
92
  try:
93
  req = requests.get(clean_url, headers=headers, stream=True, timeout=2)