Skip to content

Commit

Permalink
add accept grpc
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
  • Loading branch information
wild-endeavor committed Sep 19, 2023
1 parent a1e110e commit 2294592
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flytekit/clients/grpc_utils/auth_interceptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ def _call_details_with_auth_metadata(self, client_call_details: grpc.ClientCallD
"""
Returns new ClientCallDetails with metadata added.
"""
metadata = None
metadata = [("accept", "application/grpc")]

Check warning on line 35 in flytekit/clients/grpc_utils/auth_interceptor.py

View check run for this annotation

Codecov / codecov/patch

flytekit/clients/grpc_utils/auth_interceptor.py#L35

Added line #L35 was not covered by tests
auth_metadata = self._authenticator.fetch_grpc_call_auth_metadata()
if auth_metadata:
metadata = []
if client_call_details.metadata:
metadata.extend(list(client_call_details.metadata))
metadata.append(auth_metadata)
Expand Down

0 comments on commit 2294592

Please sign in to comment.