mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46:13 +01:00
- don't fail if no "Content-Length" header exists
This commit is contained in:
parent
d3188831b9
commit
54a0d80abe
@ -4515,8 +4515,8 @@ def streamfile(url, http_meth = http_GET, bufsize=8192, data=None, progress_obj=
|
||||
progress_obj.end(read)
|
||||
f.close()
|
||||
|
||||
if read != cl:
|
||||
raise oscerr.OscIOError(None, ('Content-Length is not matching file size for %s: %i vs %i file size' % (url, cl, read)) )
|
||||
if not cl is None and read != cl:
|
||||
raise oscerr.OscIOError(None, 'Content-Length is not matching file size for %s: %i vs %i file size' % (url, cl, read))
|
||||
|
||||
|
||||
def print_buildlog(apiurl, prj, package, repository, arch, offset = 0):
|
||||
|
Loading…
Reference in New Issue
Block a user