wsgidav.util.parse_if_match_header¶
- wsgidav.util.parse_if_match_header(value)[source]¶
Return a list of etag-values for a If-Match or If-Not-Match header.
Remove enclosing quotes for easy comparison with the DAVResource.get_etag() results. We strip the weak-ETag prefix, because WebDAV servers commonly use strong ETags. If the client sends a weak tag, it should not hurt to compare against the resources strong etag however(?).