Skip to content

Commit

Permalink
Merge pull request xuminzhong#3 from hub01/patch-2
Browse files Browse the repository at this point in the history
Update proxy.py
  • Loading branch information
phuslu committed Apr 11, 2014
2 parents f1a7565 + e938408 commit a754b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2592,7 +2592,7 @@ def filter(self, handler):
'Expires': 'Oct, 01 Aug 2100 00:00:00 GMT',
'Connection': 'close'}
content = ''
if urlparts.path.endswith(('.jpg', '.gif', '.jpeg', '.bmp')):
if urlparts.path.lower().endswith(('.jpg', '.gif', '.png','.jpeg', '.bmp')):
headers['Content-Type'] = 'image/gif'
content = self.one_pixel_gif
return [handler.MOCK, 200, headers, content]
Expand Down

0 comments on commit a754b5e

Please sign in to comment.