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:
Zooko O'Whielacronx 2009-02-12 22:37:38 -07:00
parent 21a5ae1bd2
commit 14d23d99a5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()