Fix Content-Length for httpx OAuth2Auth
ref:
@@ -30,6 +30,7 @@ class OAuth2Auth(Auth, TokenAuth):
try:
url, headers, body = self.prepare(
str(request.url), request.headers, request.content)
+ headers['Content-Length'] = str(len(body))
yield Request(method=request.method, url=url, headers=headers, data=body)
except KeyError as error:
description = 'Unsupported token_type: {}'.format(str(error))
