Always specify header of connection keep-alive regardless of python v… (#62218)

* Always specify header of connection keep-alive regardless of python version.

* Add chgangelog fragment

* Fixes to changelog fragment

(cherry picked from commit 606e13919e)
pull/62378/head
Chris Trufan 5 years ago committed by Toshio Kuratomi
parent 01eef82ed9
commit 15b3bab5b7

@ -0,0 +1,3 @@
bugfixes:
- "openssl_certificate - When provider is ``entrust``, use a ``connection: keep-alive`` header for ECS API connections."
- "ecs_certificate - Always specify header ``connection: keep-alive`` for ECS API connections."

@ -241,7 +241,10 @@ class ECSSession(object):
return resource return resource
def _set_config(self, name, **kwargs): def _set_config(self, name, **kwargs):
headers = {"Content-Type": "application/json"} headers = {
"Content-Type": "application/json",
"Connection": "keep-alive",
}
self.request = Request(headers=headers, timeout=60) self.request = Request(headers=headers, timeout=60)
configurators = [self._read_config_vars] configurators = [self._read_config_vars]

Loading…
Cancel
Save