git » pyweave » commit 9b16d10

Support the 1.0 protocol version

author Alberto Bertogli
2009-11-11 19:42:48 UTC
committer Alberto Bertogli
2009-11-11 19:58:30 UTC
parent c69f0e16c2eb761c005154fd601a2fe61a29bc3c

Support the 1.0 protocol version

There are no changes in the protocol itself except the version number, so
accept 1.0 requests too.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

pyweave.cgi +1 -1

diff --git a/pyweave.cgi b/pyweave.cgi
index 1d06c71..072b341 100755
--- a/pyweave.cgi
+++ b/pyweave.cgi
@@ -294,7 +294,7 @@ def path_info(path):
 	if len(p) < 3:
 		raise InvalidPathError
 
-	if p[0] != '0.5':
+	if p[0] not in ('0.5', '1.0'):
 		raise InvalidPathError
 
 	if not os.path.exists(data_path + '/' + fsencode(p[1])):