From 9c772f5f6c50d3e62d20976a797d039f9f12ab56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Thu, 13 Aug 2020 11:03:47 +0200 Subject: [PATCH] get-url: allow weak etags (#4372) --- dvc/tree/http.py | 6 ------ dvc/tree/webdav.py | 8 -------- 2 files changed, 14 deletions(-) diff --git a/dvc/tree/http.py b/dvc/tree/http.py index abed95ca4..dfe6f8bb9 100644 --- a/dvc/tree/http.py +++ b/dvc/tree/http.py @@ -136,12 +136,6 @@ class HTTPTree(BaseTree): # pylint:disable=abstract-method "Content-MD5 header for '{url}'".format(url=url) ) - if etag.startswith("W/"): - raise DvcException( - "Weak ETags are not supported." - " (Etag: '{etag}', URL: '{url}')".format(etag=etag, url=url) - ) - return etag def _download(self, from_info, to_file, name=None, no_progress_bar=False): diff --git a/dvc/tree/webdav.py b/dvc/tree/webdav.py index 115de3176..48c48b89a 100644 --- a/dvc/tree/webdav.py +++ b/dvc/tree/webdav.py @@ -142,14 +142,6 @@ class WebDAVTree(BaseTree): # pylint:disable=abstract-method "Content-MD5 header for '{url}'".format(url=path_info.url) ) - if etag.startswith("W/"): - raise DvcException( - "Weak ETags are not supported." - " (Etag: '{etag}', URL: '{url}')".format( - etag=etag, url=path_info.url - ) - ) - return etag # Checks whether path points to directory