mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-25 09:27:45 +00:00
Follow redirects from license server
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This commit is contained in:
@@ -72,6 +72,7 @@ def license_from_copying_hash(copying):
|
||||
c.setopt(c.URL, config.license_fetch)
|
||||
c.setopt(c.WRITEDATA, buffer)
|
||||
c.setopt(c.POSTFIELDS, data)
|
||||
c.setopt(c.FOLLOWLOCATION, 1)
|
||||
try:
|
||||
c.perform()
|
||||
except Exception as excep:
|
||||
|
||||
@@ -117,6 +117,7 @@ class TestLicense(unittest.TestCase):
|
||||
URL = None
|
||||
WRITEDATA = None
|
||||
POSTFIELDS = None
|
||||
FOLLOWLOCATION = 0
|
||||
def setopt(_, __, ___):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user