#3464 cli: allow redirects for file size checking
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue3463  into  master

file modified
+1 -1
@@ -569,7 +569,7 @@ 

              print("Downloading: %s" % relpath)

  

      if not filesize:

-         response = requests.head(url, timeout=10)

+         response = requests.head(url, timeout=10, allow_redirects=True)

          if response.status_code == 200 and response.headers.get('Content-Length'):

              filesize = int(response.headers['Content-Length'])

  

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

2 years ago

Commit eec1b9e fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago