Skip to content

Commit

Permalink
Merge pull request #1144 from mvdbeek/authenticated_request
Browse files Browse the repository at this point in the history
Use bioblend's make_get_request for authenticated request
  • Loading branch information
jmchilton authored Feb 24, 2021
2 parents 3c85855 + 0665ca5 commit 0508584
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions planemo/galaxy/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import traceback

import bioblend
import requests
from bioblend.util import attach_file
from galaxy.tool_util.client.staging import (
StagingInterace,
Expand Down Expand Up @@ -439,7 +438,7 @@ def _history_content_download(self, history_id, dataset_id, to_path, filename=No
if filename:
data["filename"] = filename

r = requests.get(url, params=data, verify=user_gi.verify, stream=True, timeout=user_gi.timeout)
r = user_gi.make_get_request(url, params=data, stream=True, timeout=user_gi.timeout)
r.raise_for_status()

with open(to_path, 'wb') as fp:
Expand Down

0 comments on commit 0508584

Please sign in to comment.