Follow redirects from license server

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This commit is contained in:
Matthew Johnson
2017-12-13 14:14:59 -08:00
parent 28d7fb63c4
commit 4897e3974e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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:
+1
View File
@@ -117,6 +117,7 @@ class TestLicense(unittest.TestCase):
URL = None
WRITEDATA = None
POSTFIELDS = None
FOLLOWLOCATION = 0
def setopt(_, __, ___):
pass