# HG changeset patch # User Paul Aurich # Date 1232338521 0 # Node ID 38e11b5dd1cfd75764a88b5e22a00b4f6aa77346 # Parent d3ab10d1c900b549f81b714272d9042c934774a1 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 d3ab10d1c900 -r 38e11b5dd1cf 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 */