Commits

Anonymous committed 9015476

Don't modify callers data structure.

  • Participants
  • Parent commits 5886754

Comments (0)

Files changed (1)

File stompy/stomp.py

             ...                 'persistent': 'true'})
 
         """
-        body = conf['body']
-        del conf['body']
-        frame = self._send_command("SEND", conf, extra={"body": body},
+        headers = dict(conf)
+        body = headers.pop("body", "")
+        frame = self._send_command("SEND", headers, extra={"body": body},
                                    want_receipt=True)
         return frame