Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 4f81635

Browse files
authored
Merge pull request #7 from coolsms/develop
Develop
2 parents 8aab5a0 + 53ded3e commit 4f81635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coolsms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def post_multipart(host, selector, fields, files):
3030
h = HTTPSConnection(host)
3131
h.putrequest('POST', selector)
3232
h.putheader('content-type', content_type)
33-
h.putheader('content-length', str(len(body)))
33+
h.putheader('content-length', str(len(body.encode('utf-8'))))
3434
h.putheader('User-Agent', 'sms-python')
3535
h.endheaders()
3636
h.send(body.encode('utf-8'))

0 commit comments

Comments
 (0)