Starchik1 commited on
Commit
318784c
·
verified ·
1 Parent(s): b37cd5f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -24,6 +24,7 @@ def proxy_image():
24
  # Get headers from the incoming request
25
  headers = {key: value for key, value in request.headers if key.lower() != 'host'}
26
  headers['Referer'] = TARGET_BASE_URL
 
27
 
28
  # Forward the request to get the image
29
  resp = requests.get(
 
24
  # Get headers from the incoming request
25
  headers = {key: value for key, value in request.headers if key.lower() != 'host'}
26
  headers['Referer'] = TARGET_BASE_URL
27
+ headers['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'
28
 
29
  # Forward the request to get the image
30
  resp = requests.get(