mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
get-url: allow weak etags (#4372)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user