mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-31 07:18:58 +00:00
Update another reference to PIL.
This commit is contained in:
parent
e9c2c0ac3a
commit
1fa6bcbd5a
@ -1,4 +1,6 @@
|
||||
import Image, cStringIO
|
||||
import cStringIO
|
||||
from PIL import Image
|
||||
|
||||
def response(context, flow):
|
||||
if flow.response.headers["content-type"] == ["image/png"]:
|
||||
s = cStringIO.StringIO(flow.response.content)
|
||||
|
Loading…
Reference in New Issue
Block a user