BraydenMoore commited on
Commit
b6d7245
1 Parent(s): f335a66

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -54,7 +54,7 @@ def proxy(url):
54
  clean_url = url.replace('proxy/', '')
55
  print('Cleaned URL:', clean_url)
56
 
57
- if '.jpg' in clean_url:
58
  req = requests.get(f'{clean_url}', headers=headers, timeout=3)
59
  content_type = req.headers['content-type']
60
  return Response(req.content, content_type=content_type)
 
54
  clean_url = url.replace('proxy/', '')
55
  print('Cleaned URL:', clean_url)
56
 
57
+ if '.jpg' in clean_url and 'stream' not in clean_url:
58
  req = requests.get(f'{clean_url}', headers=headers, timeout=3)
59
  content_type = req.headers['content-type']
60
  return Response(req.content, content_type=content_type)