From c755c13ee23cd7c93a55969883222ddc3b91a72b Mon Sep 17 00:00:00 2001 From: alallema Date: Tue, 14 Dec 2021 15:22:01 +0100 Subject: [PATCH] Modify header X-Meili-Api-Key by Authorization --- meilisearch/_httprequests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch/_httprequests.py b/meilisearch/_httprequests.py index c74f0871..403526e2 100644 --- a/meilisearch/_httprequests.py +++ b/meilisearch/_httprequests.py @@ -12,7 +12,7 @@ class HttpRequests: def __init__(self, config: Config) -> None: self.config = config self.headers = { - 'X-Meili-Api-Key': self.config.api_key, + 'Authorization': f'Bearer {self.config.api_key}', } def send_request(