Skip to content

Commit e9d9410

Browse files
committed
Fix settting of http host header field
1 parent ab38347 commit e9d9410

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dicomweb_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.41.1'
1+
__version__ = '0.41.2'
22

33

44
from dicomweb_client.api import DICOMwebClient

src/dicomweb_client/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def __init__(
403403
self._session.proxies = proxies
404404
if callback is not None:
405405
self._session.hooks = {'response': [callback, ]}
406-
if chunk_size is not None:
406+
if chunk_size is None:
407407
# There is a bug in the requests library that sets the Host header
408408
# again when using chunked transer encoding. Apparently this is
409409
# tricky to fix (see https://github.com/psf/requests/issues/4392).

0 commit comments

Comments
 (0)