From 0a27886a33bbb270a9805a14c03f6b2da7e91404 Mon Sep 17 00:00:00 2001 From: Stephen Von Worley Date: Thu, 7 Mar 2024 14:12:16 -0800 Subject: [PATCH] add galaxy version to User-Agent --- lib/galaxy/util/user_agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/util/user_agent.py b/lib/galaxy/util/user_agent.py index ffabffbcbcaa..786bf299078e 100644 --- a/lib/galaxy/util/user_agent.py +++ b/lib/galaxy/util/user_agent.py @@ -2,6 +2,7 @@ import requests +from galaxy.version import VERSION def __append_word_to_user_agent(word): @@ -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}")