Skip to content
Myr

prefetch handling for _content_consumed

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 2999c71 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:requests/models.py+4 added
421 unmodified lines
422 # Post-request hook.423 r = dispatch_hook('post_request', self.hooks, self)424 self.__dict__.update(r.__dict__)425426 # If prefetch is True, mark content as consumed.427 if prefetch:428 self.response._content_consumed = True429430 return self.sent431432433class Response(object):
143 unmodified lines