Mercurial > hg > orthanc-tests
diff Tests/Toolbox.py @ 21:2a29bcff60a7
tests of image decoding
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 22 Jun 2015 14:14:37 +0200 |
parents | 7b69a561f4d3 |
children | 156c7ae164b5 |
line wrap: on
line diff
--- a/Tests/Toolbox.py Mon Jun 22 09:47:25 2015 +0200 +++ b/Tests/Toolbox.py Mon Jun 22 14:14:37 2015 +0200 @@ -77,6 +77,7 @@ d = '?' + urlencode(data) http = httplib2.Http() + http.follow_redirects = False _SetupCredentials(orthanc, http) resp, content = http.request(orthanc['Url'] + uri + d, 'GET', body = body, @@ -91,6 +92,7 @@ def _DoPutOrPost(orthanc, uri, method, data, contentType, headers): http = httplib2.Http() + http.follow_redirects = False _SetupCredentials(orthanc, http) if isinstance(data, str): @@ -116,6 +118,7 @@ def DoDelete(orthanc, uri): http = httplib2.Http() + http.follow_redirects = False _SetupCredentials(orthanc, http) resp, content = http.request(orthanc['Url'] + uri, 'DELETE')