keep etag of target source instead of possible_source

In proxy/controllers/base.py : ResumingGetter._get_source_and_node
self.used_source_etag should be etag of target source
instead of possible_source.

Change-Id: Id6c33e79f65cb4ad9e3249957dd57dc2da8cad98
Closes-bug: #1550734
This commit is contained in:
Cheng Li 2016-02-27 23:26:47 +08:00
parent 61928443ed
commit 2d73dd9e66

View File

@ -1055,7 +1055,7 @@ class ResumingGetter(object):
self.used_nodes.append(node)
src_headers = dict(
(k.lower(), v) for k, v in
possible_source.getheaders())
source.getheaders())
# Save off the source etag so that, if we lose the connection
# and have to resume from a different node, we can be sure that