From 2d7df0afb4836aed5bdf5fa10c2cb36d072db8ae Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Tue, 17 Jul 2012 01:11:43 +0200 Subject: [PATCH] Fixed AttributeError in Content-Type vendor removal. --- httpie/pretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/pretty.py b/httpie/pretty.py index 8614d39c..dfeb6fd9 100644 --- a/httpie/pretty.py +++ b/httpie/pretty.py @@ -19,7 +19,7 @@ FORMATTER = (Terminal256Formatter if '256color' in os.environ.get('TERM', '') else TerminalFormatter) -application_content_type_re = re.compile(r'application/(.+\+)?(json|xml)$') +application_content_type_re = re.compile(r'application/(.+\+)(json|xml)$') class PrettyHttp(object):