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
This commit is contained in:
parent
6952295114
commit
606e13919e
2 changed files with 7 additions and 1 deletions
3
changelogs/fragments/62218-fix-to-entrust-api.yml
Normal file
3
changelogs/fragments/62218-fix-to-entrust-api.yml
Normal file
|
@ -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…
Reference in a new issue