Skip to content

Commit 4ae32e1

Browse files
benflexcomputeflow360-auto-hotfix-bot
authored andcommitted
Added Python version for user agent (#1350)
* Added Python version for user agent * Fix lint
1 parent 64d3f9b commit 4ae32e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

flow360/cloud/http_util.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@
2222

2323
def get_user_agent():
2424
"""Get the user agent the current environment."""
25+
<<<<<<< HEAD
2526
return os.environ.get("FLOW360_AGENT", f"Python-Client/{__version__}")
27+
=======
28+
return os.environ.get(
29+
"FLOW360_AGENT",
30+
f"Python-Client/{__version__}/"
31+
f"Python-Version/{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}",
32+
)
33+
>>>>>>> 0923a55a (Added Python version for user agent (#1350))
2634

2735

2836
def api_key_auth(request):

0 commit comments

Comments
 (0)