Mercurial > hg > orthanc-tests
diff Tests/Toolbox.py @ 59:84378ada15ab
test_decode_brainix_as_jpeg
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Nov 2015 09:56:47 +0100 |
parents | ffa542cce638 |
children | 97acfdf0dbce |
line wrap: on
line diff
--- a/Tests/Toolbox.py Fri Nov 13 17:02:27 2015 +0100 +++ b/Tests/Toolbox.py Wed Nov 18 09:56:47 2015 +0100 @@ -171,9 +171,9 @@ m.update(data) return m.hexdigest() -def GetImage(orthanc, uri): +def GetImage(orthanc, uri, headers = {}): # http://www.pythonware.com/library/pil/handbook/introduction.htm - data = DoGet(orthanc, uri) + data = DoGet(orthanc, uri, headers = headers) return Image.open(StringIO(data)) def GetArchive(orthanc, uri):