Skip to content

Commit

Permalink
Adds user agent to request to igv content (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieLF authored Aug 22, 2024
1 parent f0a30e2 commit 2df3f34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seqr/views/apis/igv_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def igv_genomes_proxy(request, cloud_host, file_path):
if range_header:
headers['Range'] = range_header

headers['User-Agent'] = request.META.get('HTTP_USER_AGENT', 'Mozilla/5.0')

genome_response = requests.get(f'{CLOUD_STORAGE_URLS[cloud_host]}/{file_path}', headers=headers)
proxy_response = HttpResponse(
content=genome_response.content,
Expand Down

0 comments on commit 2df3f34

Please sign in to comment.