Fix content-length for httpx OAuth 2 client.
Fixes
@@ -39,6 +39,7 @@ class OAuth2ClientAuth(Auth, ClientAuth):
def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:
url, headers, body = self.prepare(
request.method, str(request.url), request.headers, request.content)
+ headers['Content-Length'] = str(len(body))
yield Request(method=request.method, url=url, headers=headers, content=body)
