Skip to content

Commit a754b5e

Browse files
committed
Merge pull request xuminzhong#3 from hub01/patch-2
Update proxy.py
2 parents f1a7565 + e938408 commit a754b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,7 @@ def filter(self, handler):
25922592
'Expires': 'Oct, 01 Aug 2100 00:00:00 GMT',
25932593
'Connection': 'close'}
25942594
content = ''
2595-
if urlparts.path.endswith(('.jpg', '.gif', '.jpeg', '.bmp')):
2595+
if urlparts.path.lower().endswith(('.jpg', '.gif', '.png','.jpeg', '.bmp')):
25962596
headers['Content-Type'] = 'image/gif'
25972597
content = self.one_pixel_gif
25982598
return [handler.MOCK, 200, headers, content]

0 commit comments

Comments
 (0)