Skip to content

Commit

Permalink
pass token for download
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed Aug 27, 2024
1 parent 800ab99 commit cff0f67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fabrictestbed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "1.7.4"
__version__ = "1.7.5"
__VERSION__ = __version__
5 changes: 2 additions & 3 deletions fabrictestbed/external_api/artifact_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ def download_artifact(self, urn: str, version: str, download_dir: str) -> str:
download_url = f"{self.api_url}/contents/download/{urn}"

# Define headers to match the curl command
headers = {
'accept': 'application/json'
}
headers = self.headers.copy()
headers.pop("Content-Type")

try:
response = requests.get(download_url, headers=headers, stream=True)
Expand Down

0 comments on commit cff0f67

Please sign in to comment.