Skip to content

Commit 4e11033

Browse files
authored
transform request_body in binary
1 parent 7ef9cbc commit 4e11033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gdata/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def ProgrammaticLogin(self, captcha_token=None, captcha_response=None):
748748
auth_request_url = self.auth_service_url
749749

750750
auth_response = self.http_client.request('POST', auth_request_url,
751-
data=request_body,
751+
data=request_body.encode(),
752752
headers={'Content-Type': 'application/x-www-form-urlencoded'})
753753
response_body = auth_response.read()
754754

0 commit comments

Comments
 (0)