diff --git a/server.py b/server.py index be31271..39adcbc 100644 --- a/server.py +++ b/server.py @@ -311,7 +311,7 @@ def _clear_opcache(customer, espo_url, api_key): try: oc_req = urllib.request.Request( f'{espo_url}/opcache-clear.php', - headers={'X-Api-Key': api_key}, + headers={'Espo-Authorization': api_key, 'X-Api-Key': api_key}, method='GET', ) oc_resp = urllib.request.urlopen(oc_req, context=SSL_CTX, timeout=10)