From 50e6901f9843198e1dcd9a13d3121e749602da45 Mon Sep 17 00:00:00 2001 From: ZiniuYu Date: Wed, 20 Jul 2022 11:38:31 +0800 Subject: [PATCH] fix: typo --- client/clip_client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/clip_client/client.py b/client/clip_client/client.py index ee4f5f697..7b1bf1e0e 100644 --- a/client/clip_client/client.py +++ b/client/clip_client/client.py @@ -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 @@ -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