Update another reference to PIL.

This commit is contained in:
Tomaz Muraus 2014-01-04 03:15:08 +01:00
parent e9c2c0ac3a
commit 1fa6bcbd5a

View File

@ -1,4 +1,6 @@
import Image, cStringIO import cStringIO
from PIL import Image
def response(context, flow): def response(context, flow):
if flow.response.headers["content-type"] == ["image/png"]: if flow.response.headers["content-type"] == ["image/png"]:
s = cStringIO.StringIO(flow.response.content) s = cStringIO.StringIO(flow.response.content)