diff options
author | Evan Prodromou <evan@status.net> | 2009-09-15 17:08:27 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-09-15 17:08:27 -0400 |
commit | 48565a2cdc9df329dee1ad327a1c632dd8f1d4c3 (patch) | |
tree | 6aae6d42475e94b8d9b2ab62db165295567dbeb0 /extlib/Stomp/Message.php | |
parent | 80ba0603c65e1f2365f019128b656a042a2b82d0 (diff) |
Revert "Several fixes to make RabbitMQ a player."
This reverts commit c04987018cd6c845c6da7a92d9857d8c651f7022.
Diffstat (limited to 'extlib/Stomp/Message.php')
-rw-r--r-- | extlib/Stomp/Message.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/extlib/Stomp/Message.php b/extlib/Stomp/Message.php index 055662133..6bcad3efd 100644 --- a/extlib/Stomp/Message.php +++ b/extlib/Stomp/Message.php @@ -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); } } |