BraydenMoore commited on
Commit
0c5cb70
1 Parent(s): 412df7c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -71,8 +71,8 @@ def proxy(url):
71
  print('\n\nREQUESTING URL:', clean_url)
72
  req = requests.get(clean_url, headers=headers, stream=True, timeout=15)
73
  logging.info(f"Status Code: {req.status_code}, Response Headers: {req.headers}")
74
- #return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
75
- return req.iter_content(chunk_size=2048)
76
  except:
77
  session['exception_urls'].append(url)
78
  save_exception_urls(session['exception_urls'])
 
71
  print('\n\nREQUESTING URL:', clean_url)
72
  req = requests.get(clean_url, headers=headers, stream=True, timeout=15)
73
  logging.info(f"Status Code: {req.status_code}, Response Headers: {req.headers}")
74
+ return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
75
+
76
  except:
77
  session['exception_urls'].append(url)
78
  save_exception_urls(session['exception_urls'])