[sip] send_sms.py: base64encoding sans \n
Sinon ça s'arrête sur la ligne précédente.
This commit is contained in:
parent
3b278bf860
commit
b07e677ed9
1 changed files with 1 additions and 1 deletions
|
@ -315,5 +315,5 @@ class Manager(object):
|
||||||
if not body_type in ["str", "base64"]:
|
if not body_type in ["str", "base64"]:
|
||||||
raise EnvironmentError("body_type sould be 'str' ou 'base64' not %r" % body_type)
|
raise EnvironmentError("body_type sould be 'str' ou 'base64' not %r" % body_type)
|
||||||
if body_type == "str":
|
if body_type == "str":
|
||||||
body = base64.encodestring(body).strip()
|
body = base64.b64encode(body).strip()
|
||||||
return self._action('messageSend', {'to':dst, 'from':src, 'base64body':body})
|
return self._action('messageSend', {'to':dst, 'from':src, 'base64body':body})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue