Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/connection/grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ const getMetadataWithEmbeddingServiceAuth = (config: GrpcConnectionParams, beare
...config.headers,
authorization: bearerToken,
'X-Weaviate-Cluster-Url': config.host,
// keeping for backwards compatibility for older clusters for now. On newer clusters, Embedding Service reuses Authorization header.
'X-Weaviate-Api-Key': bearerToken,
}
: config.headers
);
2 changes: 0 additions & 2 deletions src/connection/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,5 @@ const getAuthHeaders = (config: InternalConnectionParams, bearerToken: string) =
? {
Authorization: `Bearer ${bearerToken}`,
'X-Weaviate-Cluster-Url': config.host,
// keeping for backwards compatibility for older clusters for now. On newer clusters, Embedding Service reuses Authorization header.
'X-Weaviate-Api-Key': bearerToken,
}
: undefined;