Mercurial > pidgin
changeset 25664:26259ee81c5b
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.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 19 Jan 2009 04:15:21 +0000 |
parents | 1d1d1829de11 |
children | 3098c5e4d7a4 |
files | libpurple/protocols/jabber/bosh.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 */