# HG changeset patch # User Paul Aurich # Date 1232338521 0 # Node ID 26259ee81c5b504d4d4bf192753511a07931cba1 # Parent 1d1d1829de11f12c3db38e747a2949399c1ef9b7 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. diff -r 1d1d1829de11 -r 26259ee81c5b libpurple/protocols/jabber/bosh.c --- a/libpurple/protocols/jabber/bosh.c Sun Jan 18 04:17:50 2009 +0000 +++ b/libpurple/protocols/jabber/bosh.c Mon Jan 19 04:15:21 2009 +0000 @@ -644,9 +644,11 @@ "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 */