Skip to content

Commit 0355561

Browse files
committed
removed unused headers
1 parent abb2ecd commit 0355561

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

labelbox/client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ def __init__(self,
9999
'X-User-Agent': f'python-sdk {SDK_VERSION}'
100100
}
101101
self._data_row_metadata_ontology = None
102-
self.rest_endpoint = rest_endpoint
103-
self.rest_endpoint_headers = {
104-
"authorization": "Bearer %s" % self.api_key,
105-
'X-User-Agent': 'python-sdk 0.0.0',
106-
'Content-Type': 'application/json',
107-
}
108102

109103
@retry.Retry(predicate=retry.if_exception_type(
110104
labelbox.exceptions.InternalServerError,
@@ -1596,7 +1590,7 @@ def is_feature_schema_archived(self, ontology_id: str,
15961590
ontology_endpoint = self.rest_endpoint + "/ontologies/" + ontology_id
15971591
response = requests.get(
15981592
ontology_endpoint,
1599-
headers=self.rest_endpoint_headers,
1593+
headers=self.headers,
16001594
)
16011595

16021596
if response.status_code == 200:

0 commit comments

Comments
 (0)