[sip] send_sms.py: base64encoding sans \n

Sinon ça s'arrête sur la ligne précédente.
This commit is contained in:
Daniel STAN 2013-08-21 17:12:32 +02:00
parent 3b278bf860
commit b07e677ed9

View file

@ -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})