We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c83c2b + 3b19391 commit 591e7dbCopy full SHA for 591e7db
1 file changed
bin/stashcp
@@ -16,6 +16,9 @@ import shutil
16
import logging
17
from urlparse import urlparse
18
19
+# Version information for user-agent
20
+VERSION = "5.1.1"
21
+
22
main_redirector = "root://redirector.osgstorage.org"
23
stash_origin = "root://stash.osgconnect.net"
24
writeback_host = "http://stash-xrd.osgconnect.net:1094"
@@ -404,7 +407,7 @@ def get_best_stashcache():
404
407
append_text = "api/v1.0/geo/stashcp"
405
408
406
409
# Headers for the HTTP request
- headers = {'Cache-control': 'max-age=0', 'User-Agent': 'stashcp/4.3.1'}
410
+ headers = {'Cache-control': 'max-age=0', 'User-Agent': 'stashcp/{}'.format(VERSION)}
411
412
# Randomize the geo ip sites
413
random.shuffle(geo_ip_sites)
0 commit comments