doc webdav: match the quotes around ETags
authorP. Christeas <p_christ@hol.gr>
Fri, 15 Oct 2010 09:27:58 +0000 (12:27 +0300)
committerP. Christeas <p_christ@hol.gr>
Fri, 15 Oct 2010 09:27:58 +0000 (12:27 +0300)
In commit e7eede397c8a84, quotes were re-introduced around ETags. At the
http "If-Match" header, we have to follow that.

bzr revid: p_christ@hol.gr-20101015092758-3wajkzjo0bm5z60g

addons/document_webdav/webdav_server.py

index 299789b..df2c4a8 100644 (file)
@@ -164,8 +164,6 @@ class DAVHandler(HttpOptions, FixSendError, DAVRequestHandler):
             etag = None
 
             for match in self.headers['If-Match'].split(','):
-                if match.startswith('"') and match.endswith('"'):
-                    match = match[1:-1]
                 if match == '*':
                     if dc.exists(uri):
                         test = True