Untitled
By: a guest | Mar 11th, 2010 | Syntax:
Diff | Size: 0.52 KB | Hits: 256 | Expires: Never
diff --git a/extlib/Stomp/Frame.php b/extlib/Stomp/Frame.php
index 195e3b6..ab913d8 100644
--- a/extlib/Stomp/Frame.php
+++ b/extlib/Stomp/Frame.php
-46,6 +46,7 @@ class StompFrame
$this->command = $command;
if ($headers != null) {
$this->headers = $headers;
+ $this->headers['content-length'] = strlen($body);
}
$this->body = $body;
-73,4 +74,4 @@ class StompFrame
return $data .= "\x00";
}
}
-?>
\ No newline at end of file
+?>