We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b0e5f9 commit de3e481Copy full SHA for de3e481
lib/meilisearch/http_request.rb
@@ -62,7 +62,7 @@ def http_delete(relative_path = '')
62
def build_default_options_headers(api_key = nil)
63
{
64
'Content-Type' => 'application/json',
65
- 'X-Meili-API-Key' => api_key
+ 'Authorization' => "Bearer #{api_key}"
66
}.compact
67
end
68
spec/meilisearch/index/base_spec.rb
@@ -99,7 +99,7 @@
99
expect(MeiliSearch::Index).to receive(:get).with(
100
"#{URL}/indexes/options",
101
102
- headers: { 'X-Meili-API-Key' => MASTER_KEY },
+ headers: { 'Authorization' => "Bearer #{MASTER_KEY}" },
103
body: 'null',
104
query: {},
105
max_retries: 1,
0 commit comments