Skip to content

Commit

Permalink
Merge pull request #250 from populationgenomics/igv_api_request_add_u…
Browse files Browse the repository at this point in the history
…ser_agent

Add the User-Agent header to IGV API proxy requests
  • Loading branch information
cassimons authored Oct 22, 2024
2 parents ed19c5e + 70847fe commit 3e3655a
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 @@ -278,6 +278,8 @@ def igv_genomes_proxy(request, cloud_host, file_path):
range_header = request.META.get('HTTP_RANGE')
if range_header:
headers['Range'] = range_header
headers['User-Agent'] = request.META.get('HTTP_USER_AGENT', 'Mozilla/5.0')

if cloud_host == S3_KEY:
headers.update(convert_django_meta_to_http_headers(request))

Expand Down

0 comments on commit 3e3655a

Please sign in to comment.