Skip to content

Commit c90b725

Browse files
authored
Merge pull request #371 from meilisearch/api-header
Use Authorization header instead of X-Meili-API-Key
2 parents b6bc02b + c755c13 commit c90b725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meilisearch/_httprequests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class HttpRequests:
1212
def __init__(self, config: Config) -> None:
1313
self.config = config
1414
self.headers = {
15-
'X-Meili-Api-Key': self.config.api_key,
15+
'Authorization': f'Bearer {self.config.api_key}',
1616
}
1717

1818
def send_request(

0 commit comments

Comments
 (0)