CONTENT_TYPE_MSGPACK is not a class level const

This commit is contained in:
Gavin M. Roy 2019-10-29 13:09:45 -04:00
parent 3b697e766d
commit 3b13f19d95

View file

@ -259,7 +259,7 @@ class HTTPClientMixin:
method='GET',
request_headers=None,
body=None,
content_type=None,
content_type=CONTENT_TYPE_MSGPACK,
follow_redirects=False,
max_redirects=None,
connect_timeout=None,
@ -314,7 +314,7 @@ class HTTPClientMixin:
response = HTTPResponse()
request_headers = self._http_req_apply_default_headers(
request_headers, content_type or CONTENT_TYPE_MSGPACK, body)
request_headers, content_type, body)
if body:
body = self._http_req_body_serialize(