Skip to content

Commit

Permalink
Merge pull request #16 from farwayer/master
Browse files Browse the repository at this point in the history
FileCache: raw field serialization
  • Loading branch information
ionrock committed Mar 24, 2014
2 parents abdaa11 + 3c058de commit 58467ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cachecontrol/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def build_response(self, request, response):
resp = self.controller.update_cached_response(
request, response
)
# Fix possible exception when using missing `raw` field in
# requests
# TODO: remove when requests will be bump to 2.2.2 or 2.3
# version
resp.raw = None
else:
# try to cache the response
self.controller.cache_response(request, resp)
Expand Down

0 comments on commit 58467ca

Please sign in to comment.