mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Fix Content-Length invalid headers exception (#787)
This commit is contained in:
committed by
Wan Liuyang
parent
e9e09b9dda
commit
23395f5f14
+1
-1
@@ -330,7 +330,7 @@ class Requester:
|
||||
return mime_type, f
|
||||
|
||||
if input:
|
||||
headers["Content-Length"] = os.path.getsize(input)
|
||||
headers["Content-Length"] = str(os.path.getsize(input))
|
||||
return self.__requestEncode(None, verb, url, parameters, headers, input, encode)
|
||||
|
||||
def __requestEncode(self, cnx, verb, url, parameters, requestHeaders, input, encode):
|
||||
|
||||
Reference in New Issue
Block a user