PATCH: set User-Agent string in HTTP transport

John A Meinel john at arbash-meinel.com
Sat Feb 4 23:51:29 GMT 2006


Robert Collins wrote:
> On Fri, 2006-02-03 at 10:27 +1100, Robert Collins wrote:
>> On Thu, 2006-02-02 at 17:32 +0800, James Henstridge wrote:
>>> At the moment, bzr sends the default "Python-urllib/X.Y" user agent
>>> string when talking to web servers.  This makes it difficult to
>>> differentiate bzr requests from other urllib-based requests.
>>>
>>> The attached patch changes the user-agent string to read
>>> "bzr/$version".  The version information might also be useful to
>>> people in the future to see what versions of bzr people use to access
>>> thier branches (e.g. to decide when it is safe to upgrade to a new
>>> branch format).
>>>
>>> The change can also be found in revision 1594 of
>>>     http://people.ubuntu.com/~jamesh/bzr.smallfixes
>> +1
> 
> Although for added value I would -love- to see an http transport test
> for this, one that tests all the http transports :).
> 
> Rob
> 

I agree that it would be nice to have an http test for this. But I think
it is good enough to get it merged now. Since you gave it a +1, and so
did I, it has been merged into jam-integration revno 1525.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060204/bdbd2e82/attachment.pgp 


More information about the bazaar mailing list