cpw.darkrain42.xmpp.bosh: 4d5cf3a7: BOSH: Fix the HTTP Post to include the a...
paul at darkrain42.org
paul at darkrain42.org
Mon Jan 19 13:31:25 EST 2009
-----------------------------------------------------------------
Revision: 4d5cf3a74befa2463cc0582ada1ec37a8de19a02
Ancestor: 3293fc3ad889f1d2a217f0fde24d2c31e6f64af8
Author: paul at darkrain42.org
Date: 2009-01-19T04:15:21
Branch: im.pidgin.cpw.darkrain42.xmpp.bosh
URL: http://d.pidgin.im/viewmtn/revision/info/4d5cf3a74befa2463cc0582ada1ec37a8de19a02
Modified files:
libpurple/protocols/jabber/bosh.c
ChangeLog:
BOSH: Fix the HTTP Post to include the actual payload.
This is why I should pay attention when splitting huge commits into
bitsize (delicious) chunks.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/bosh.c 71c5f83d2b30729d95b70f71a34193fad4a9efd6
+++ libpurple/protocols/jabber/bosh.c 8eeddc5edad295874d4db1c8dd0d0883450c0d9d
@@ -644,9 +644,11 @@ jabber_bosh_http_connection_send_request
"Host: %s\r\n"
"User-Agent: %s\r\n"
"Content-Encoding: text/xml; charset=utf-8\r\n"
- "Content-Length: %d\r\n",
+ "Content-Length: %d\r\n\r\n",
req->path, conn->host, bosh_useragent, req->data_len);
+ packet = g_string_append(packet, req->data);
+
printf("Sending %s\n", packet->str);
/* TODO: Better error handling, circbuffer or possible integration with
* low-level code in jabber.c */
More information about the Commits
mailing list