get-url: allow weak etags (#4372)

This commit is contained in:
Paweł Redzyński
2020-08-13 12:03:47 +03:00
committed by GitHub
parent e3cfa7348c
commit 9c772f5f6c
2 changed files with 0 additions and 14 deletions
-6
View File
@@ -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):
-8
View File
@@ -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