]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - extlib/Stomp/Message.php
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x-mobile
[quix0rs-gnu-social.git] / extlib / Stomp / Message.php
index 0556621338ad58b6993954ed8eca4896af955383..6bcad3efd9c8525661715349fb27b05dc4559300 100644 (file)
@@ -29,12 +29,8 @@ require_once 'Stomp/Frame.php';
  */
 class Stomp_Message extends Stomp_Frame
 {
-    public function __construct ($body, $headers = array())
+    public function __construct ($body, $headers = null)
     {
-        if(!isset($headers['content-length'])) {
-          // TODO: log this, to see if this is correct
-          $headers['content-length'] = strlen($body);
-        }
         $this->_init("SEND", $headers, $body);
     }
 }