Browse files

Match multiple spaces before the HTTP status code.

  • Loading branch information...
1 parent b3ac91c commit 1f5543057f28ab79ba9b7af76190a5f4663fab57 @jparise committed Jun 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 curlish.py
View
4 curlish.py
@@ -561,12 +561,12 @@ def beautify_curl_output(iterable, hide_headers, hide_jsonp=False):
# Headers
for line in iterable:
if re.search(r'^HTTP/', line):
- if re.search('HTTP/\d+.\d+ 100', line):
+ if re.search('HTTP/\d+.\d+\s+100', line):
continuing = True
elif continuing:
continuing = False
if has_colors and not hide_headers:
- if re.search('HTTP/\d+.\d+ [45]\d+', line):
+ if re.search('HTTP/\d+.\d+\s+[45]\d+', line):
color = get_color('statusline_error')
else:
color = get_color('statusline_ok')

0 comments on commit 1f55430

Please sign in to comment.