Skip to content

Commit 5122896

Browse files
augustas1tsmith023
andauthored
cleanup deprecated X-Weaviate-Api-Key header (#369)
Co-authored-by: Tommy Smith <tommy@weaviate.io>
1 parent 262670f commit 5122896

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/connection/grpc.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ const getMetadataWithEmbeddingServiceAuth = (config: GrpcConnectionParams, beare
264264
...config.headers,
265265
authorization: bearerToken,
266266
'X-Weaviate-Cluster-Url': config.host,
267-
// keeping for backwards compatibility for older clusters for now. On newer clusters, Embedding Service reuses Authorization header.
268-
'X-Weaviate-Api-Key': bearerToken,
269267
}
270268
: config.headers
271269
);

src/connection/http.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,5 @@ const getAuthHeaders = (config: InternalConnectionParams, bearerToken: string) =
435435
? {
436436
Authorization: `Bearer ${bearerToken}`,
437437
'X-Weaviate-Cluster-Url': config.host,
438-
// keeping for backwards compatibility for older clusters for now. On newer clusters, Embedding Service reuses Authorization header.
439-
'X-Weaviate-Api-Key': bearerToken,
440438
}
441439
: undefined;

0 commit comments

Comments
 (0)