]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - extlib/Stomp/Message.php
Do not use fuzzy in the compiled messages files.
[quix0rs-gnu-social.git] / extlib / Stomp / Message.php
index 0556621338ad58b6993954ed8eca4896af955383..5a064090ccbcd68210b4bca1867dcb004c813a77 100644 (file)
@@ -24,17 +24,11 @@ require_once 'Stomp/Frame.php';
  * Basic text stomp message
  *
  * @package Stomp
- * @author Dejan Bosanac <dejan@nighttale.net>
- * @version $Revision: 23 $
  */
-class Stomp_Message extends Stomp_Frame
+class StompMessage extends StompFrame
 {
-    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);
     }
 }