Commits

Benjamin Smith committed 5d6bd2c

Forgot to strip out the ^@

Comments (0)

Files changed (1)

         # http://stomp.codehaus.org/Protocol mentions 
         # nothing about a newline following the NULL (^@)
         if buffer[:1] == '\n':
-            return buffer[1:]
+            return buffer[1:-1]
 
-        return buffer
+        return buffer[:-1]
 
     def __repr__(self):
         return "<Frame %s>" % pformat(self.headers)