aboutsummaryrefslogtreecommitdiffstats
path: root/examples/upsidedownternet.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/upsidedownternet.py')
-rw-r--r--examples/upsidedownternet.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/upsidedownternet.py b/examples/upsidedownternet.py
index 738eb11f..a6de97e4 100644
--- a/examples/upsidedownternet.py
+++ b/examples/upsidedownternet.py
@@ -2,6 +2,7 @@ import cStringIO
from PIL import Image
from libmproxy.protocol.http import decoded
+
def response(context, flow):
if flow.response.headers.get_first("content-type", "").startswith("image"):
with decoded(flow.response): # automatically decode gzipped responses.
@@ -13,4 +14,4 @@ def response(context, flow):
flow.response.content = s2.getvalue()
flow.response.headers["content-type"] = ["image/png"]
except: # Unknown image types etc.
- pass \ No newline at end of file
+ pass