mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-19 08:16:19 +00:00
setup: make the "full version string" be "allmydata-tahoe/1.3.0" instead of "allmydata-tahoe-1.3.0" and the UserAgent string of the cli be "allmydata-tahoe/1.3.0 (tahoe-client)"
This is webbish. Thanks to kpreid for suggesting it.
This commit is contained in:
parent
21a5ae1bd2
commit
14d23d99a5
@ -25,7 +25,7 @@ except ImportError:
|
||||
# __full_version__ is the one that you ought to use when identifying yourself in the
|
||||
# "application" part of the Tahoe versioning scheme:
|
||||
# http://allmydata.org/trac/tahoe/wiki/Versioning
|
||||
__full_version__ = __appname__ + '-' + str(__version__)
|
||||
__full_version__ = __appname__ + '/' + str(__version__)
|
||||
|
||||
hush_pyflakes = __version__
|
||||
del hush_pyflakes
|
||||
|
@ -44,7 +44,7 @@ def do_http(method, url, body=""):
|
||||
raise ValueError("unknown scheme '%s', need http or https" % scheme)
|
||||
c.putrequest(method, path)
|
||||
c.putheader("Hostname", host)
|
||||
c.putheader("User-Agent", "tahoe_cli/%s" % allmydata.__full_version__)
|
||||
c.putheader("User-Agent", allmydata.__full_version__ + " (tahoe-client)")
|
||||
c.putheader("Connection", "close")
|
||||
|
||||
old = body.tell()
|
||||
|
Loading…
x
Reference in New Issue
Block a user