Skip to content

Commit 1ccde2e

Browse files
committed
Stringify the Content-Length header
Recent versions of requests no longer accept integer header values. See https://github.com/kennethreitz/requests/issues/3477 Signed-off-by: Wieland Hoffmann <themineo@gmail.com>
1 parent 957944d commit 1ccde2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

musicbrainzngs/musicbrainz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def _mb_request(path, method='GET', auth_required=AUTH_NO,
549549
else:
550550
# Explicitly indicate zero content length if no request data
551551
# will be sent (avoids HTTP 411 error).
552-
headers['Content-Length'] = 0
552+
headers['Content-Length'] = '0'
553553

554554
# Convert args from a dictionary to a list of tuples
555555
# so that the ordering of elements is stable for easy

0 commit comments

Comments
 (0)