Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 11th, 2010 | Syntax: Diff | Size: 0.52 KB | Hits: 256 | Expires: Never
Copy text to clipboard
  1. diff --git a/extlib/Stomp/Frame.php b/extlib/Stomp/Frame.php
  2. index 195e3b6..ab913d8 100644
  3. --- a/extlib/Stomp/Frame.php
  4. +++ b/extlib/Stomp/Frame.php
  5.  -46,6 +46,7 @@ class StompFrame
  6.          $this->command = $command;
  7.          if ($headers != null) {
  8.              $this->headers = $headers;
  9. +            $this->headers['content-length'] =  strlen($body);
  10.          }
  11.          $this->body = $body;
  12.          
  13.  -73,4 +74,4 @@ class StompFrame
  14.          return $data .= "\x00";
  15.      }
  16.  }
  17. -?>
  18. \ No newline at end of file
  19. +?>