subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1491707 - /subversion/trunk/tools/server-side/svnpubsub/svnpubsub/server.py
Date Tue, 11 Jun 2013 09:00:20 GMT
Author: danielsh
Date: Tue Jun 11 09:00:20 2013
New Revision: 1491707

URL: http://svn.apache.org/r1491707
Log:
[in tools/server-side/svnpubsub/]

* svnpubsub/server.py
  (Client.write_start): Add the protocol version in a header, on the
    speculation that it might be useful.

Modified:
    subversion/trunk/tools/server-side/svnpubsub/svnpubsub/server.py

Modified: subversion/trunk/tools/server-side/svnpubsub/svnpubsub/server.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnpubsub/svnpubsub/server.py?rev=1491707&r1=1491706&r2=1491707&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/svnpubsub/server.py (original)
+++ subversion/trunk/tools/server-side/svnpubsub/svnpubsub/server.py Tue Jun 11 09:00:20 2013
@@ -183,6 +183,7 @@ class Client(object):
         self.r.write(str(input))
 
     def write_start(self):
+        self.r.setHeader('X-SVNPubSub-Version', '1')
         self.r.setHeader('content-type', 'application/vnd.apache.vc-notify+json')
         self.write('{"svnpubsub": {"version": 1}}\n\0')
 



Mime
View raw message