Skip to content

Commit

Permalink
add galaxy version to User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
svonworl authored and mvdbeek committed Apr 16, 2024
1 parent f1115cc commit 0a27886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/util/user_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import requests

from galaxy.version import VERSION

def __append_word_to_user_agent(word):

Expand Down Expand Up @@ -31,4 +32,4 @@ def new_build_opener(*handlers):
urllib.request.build_opener = new_build_opener


__append_word_to_user_agent("galaxy")
__append_word_to_user_agent(f"galaxy/{VERSION}")

0 comments on commit 0a27886

Please sign in to comment.