[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Add platform information to user agent string

From: Ivan Zhakov <ivan_at_visualsvn.com>
Date: Tue, 30 Oct 2012 19:28:27 +0400

Hi,

I think it will be useful to add client platform information to user
agent string, to use it Apache HTTP Server configuration or Subversion
hooks. Within my patch applied user agent will be like this:
SVN/1.8.0 (Windows) serf/1.1.1 TortoiseSVN/1.8.0
SVN/1.8.0 (Macintosh) serf/1.1.1
SVN/1.8.0 (FreeBSD) serf/1.1.1

[[[
* subversion/libsvn_ra_serf/ra_serf.h
  (USER_AGENT_PLATFORM): New.
  (USER_AGENT): Add platform information.
]]]

Any objections?

I've tested it only on Windows, so more testing would be useful.

[1] http://sourceforge.net/p/predef/wiki/OperatingSystems/

-- 
Ivan Zhakov

Received on 2012-10-30 16:29:22 CET

This is an archived mail posted to the Subversion Dev mailing list.