Update main.py
Browse files
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(
|