[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnash-commit
Subject:    [Gnash-commit] /srv/bzr/gnash/rtmp r9800: terminate by appending
From:       rob () welcomehome ! org
Date:       2008-11-29 19:33:11
Message-ID: E1L6W0o-0007lY-09 () sv ! gnu ! org
[Download RAW message or body]

------------------------------------------------------------
revno: 9800
committer: rob@welcomehome.org
branch nick: rtmp
timestamp: Sat 2008-11-29 12:33:11 -0700
message:
  terminate by appending directly to the Buffer to get rid of the extraneous character.
modified:
  libnet/http.h

["r9800.diff" (r9800.diff)]

=== modified file 'libnet/http.h'
--- a/libnet/http.h	2008-11-29 01:09:55 +0000
+++ b/libnet/http.h	2008-11-29 19:33:11 +0000
@@ -230,7 +230,7 @@
     amf::Buffer &formatTE(const std::string &data)
  	{return formatCommon("TE: " + data); };
     // All HTTP messages are terminated with a blank line
-    void terminateHeader() { formatCommon("\r\n"); };    
+    void terminateHeader() { _buffer += "\r\n"; };    
     
     amf::Buffer &formatErrorResponse(http_status_e err);
     



_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic