Commit b07e677e authored by Daniel STAN's avatar Daniel STAN

[sip] send_sms.py: base64encoding sans \n

Sinon ça s'arrête sur la ligne précédente.
parent 3b278bf8
......@@ -315,5 +315,5 @@ class Manager(object):
if not body_type in ["str", "base64"]:
raise EnvironmentError("body_type sould be 'str' ou 'base64' not %r" % body_type)
if body_type == "str":
body = base64.encodestring(body).strip()
body = base64.b64encode(body).strip()
return self._action('messageSend', {'to':dst, 'from':src, 'base64body':body})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment