# HG changeset patch # User Gregory Szorc # Date 2017-04-01 07:21:52 # Node ID 39f6333e968c79646016e9328bb18ea521de0a52 # Parent 62f9679df1f2e2272465fea9e750c76df810cdd0 tests: store ETag when using --headeronly Previously, --headeronly would prevent --twice from working because the ETag wasn't stored when --headeronly was used. This feels like a bug. That feeling is reaffirmed by the fact that this change doesn't regress any tests. diff --git a/tests/get-with-headers.py b/tests/get-with-headers.py --- a/tests/get-with-headers.py +++ b/tests/get-with-headers.py @@ -78,8 +78,8 @@ def request(host, path, show): else: sys.stdout.write(data) - if twice and response.getheader('ETag', None): - tag = response.getheader('ETag') + if twice and response.getheader('ETag', None): + tag = response.getheader('ETag') return response.status