aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/contentviews
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-04-16 15:05:58 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-04-16 15:51:11 +0200
commitdadb50946e3ac489451bda079730e09f84e54d5a (patch)
tree1d79f48b5fac6255c45af0a781ca0557839ce6bf /mitmproxy/contentviews
parentec6be96f2ad05776127efc29fae1df51647aa1fb (diff)
downloadmitmproxy-dadb50946e3ac489451bda079730e09f84e54d5a.tar.gz
mitmproxy-dadb50946e3ac489451bda079730e09f84e54d5a.tar.bz2
mitmproxy-dadb50946e3ac489451bda079730e09f84e54d5a.zip
update kaitai and recompile formats
Diffstat (limited to 'mitmproxy/contentviews')
-rw-r--r--mitmproxy/contentviews/image/image_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/contentviews/image/image_parser.py b/mitmproxy/contentviews/image/image_parser.py
index 062fb38e..7c74669a 100644
--- a/mitmproxy/contentviews/image/image_parser.py
+++ b/mitmproxy/contentviews/image/image_parser.py
@@ -37,7 +37,7 @@ def parse_gif(data: bytes) -> Metadata:
descriptor = img.logical_screen_descriptor
parts = [
('Format', 'Compuserve GIF'),
- ('Version', "GIF{}".format(img.header.version.decode('ASCII'))),
+ ('Version', "GIF{}".format(img.hdr.version)),
('Size', "{} x {} px".format(descriptor.screen_width, descriptor.screen_height)),
('background', str(descriptor.bg_color_index))
]