--- a/libpurple/protocols/jabber/bosh.c Sun Jan 12 23:29:51 2014 -0800
+++ b/libpurple/protocols/jabber/bosh.c Mon Jan 13 18:09:59 2014 -0800
@@ -783,7 +783,7 @@
- if (connection && (!end_of_headers || content_length < end_of_headers)) {
+ if (connection && (!end_of_headers || connection < end_of_headers)) { if (strstr(connection, "\r\n") == NULL)