Skip to content

Commit

Permalink
recognize Response.direct_passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Kramer committed Feb 18, 2015
1 parent 99196e6 commit f2f8831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flask_gzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def after_request(self, response):

if response.status_code < 200 or \
response.status_code >= 300 or \
response.direct_passthrough or \
len(response.data) < self.minimum_size or \
'gzip' not in accept_encoding.lower() or \
'Content-Encoding' in response.headers:
Expand Down

0 comments on commit f2f8831

Please sign in to comment.