prefetch handling for _content_consumed

This commit is contained in:
Kenneth Reitz
2011-11-09 17:56:29 -08:00
parent 2999c71e46
commit d1b6db05a4
+4
View File
@@ -423,6 +423,10 @@ class Request(object):
r = dispatch_hook('post_request', self.hooks, self)
self.__dict__.update(r.__dict__)
# If prefetch is True, mark content as consumed.
if prefetch:
self.response._content_consumed = True
return self.sent