summaryrefslogtreecommitdiff
path: root/scripts/update_device.py
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-09-09 15:23:59 -0700
committerHaibo Huang <hhb@google.com>2020-09-09 15:25:40 -0700
commit59ad2731511cfb1096de52c3f1093b41101e4252 (patch)
tree27e260afda07f9e9112ae6836c8ce64944cae1b8 /scripts/update_device.py
parent8b113b21b81099df8c0bb9580729633e7f493863 (diff)
Adds connection: close to test server
The test http server does not really support connection reuse. After each request, the connection is closed. When a url returns a redirction, curl will try to reuse the previous connection, and fail. This was ok before, because this kind of failure didn't count into the total number of connection failure. But things changed in latest curl. The max redirection is actually capped by 5, the max allowed connection failure. This change adds "Connection: close" header to test server. So that curl will not try to reuse connecton. Test: atest update_engine_unittests Change-Id: I443c28ff3760a1cad80cfd40e354e1d0328f7561
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions