Skip to content

Commit

Permalink
Fix settting of http host header field
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermd committed Aug 28, 2020
1 parent ab38347 commit e9d9410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dicomweb_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.41.1'
__version__ = '0.41.2'


from dicomweb_client.api import DICOMwebClient
2 changes: 1 addition & 1 deletion src/dicomweb_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit e9d9410

Please sign in to comment.