Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiniuYu committed Jul 20, 2022
1 parent f26acef commit 50e6901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/clip_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _get_post_payload(self, content, kwargs):
total_docs=len(content) if hasattr(content, '__len__') else None,
)
if self._scheme == 'grpc' and self._authorization:
payload.update(metadata=('Authorization', self._authorization))
payload.update(metadata=('authorization', self._authorization))
elif self._scheme == 'http' and self._authorization:
payload.update(headers={'Authorization': self._authorization})
return payload
Expand Down Expand Up @@ -373,7 +373,7 @@ def _get_rank_payload(self, content, kwargs):
total_docs=len(content) if hasattr(content, '__len__') else None,
)
if self._scheme == 'grpc' and self._authorization:
payload.update(metadata=('Authorization', self._authorization))
payload.update(metadata=('authorization', self._authorization))
elif self._scheme == 'http' and self._authorization:
payload.update(headers={'Authorization': self._authorization})
return payload
Expand Down

0 comments on commit 50e6901

Please sign in to comment.