From e9d9410e7de9108e6cda82c5c44a3fb177e32163 Mon Sep 17 00:00:00 2001 From: hackermd Date: Thu, 27 Aug 2020 22:00:03 -0400 Subject: [PATCH] Fix settting of http host header field --- src/dicomweb_client/__init__.py | 2 +- src/dicomweb_client/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dicomweb_client/__init__.py b/src/dicomweb_client/__init__.py index c4b6051..4e1a222 100644 --- a/src/dicomweb_client/__init__.py +++ b/src/dicomweb_client/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.41.1' +__version__ = '0.41.2' from dicomweb_client.api import DICOMwebClient diff --git a/src/dicomweb_client/api.py b/src/dicomweb_client/api.py index 8904f90..69539b2 100644 --- a/src/dicomweb_client/api.py +++ b/src/dicomweb_client/api.py @@ -403,7 +403,7 @@ def __init__( self._session.proxies = proxies if callback is not None: self._session.hooks = {'response': [callback, ]} - if chunk_size is not None: + if chunk_size is None: # There is a bug in the requests library that sets the Host header # again when using chunked transer encoding. Apparently this is # tricky to fix (see https://github.com/psf/requests/issues/4392).