Mercurial > pidgin
comparison libpurple/protocols/jabber/bosh.c @ 28664:931d6906291b
jabber: Here's a good reason for the namespace defines. Fix a typo 'urn:xmpp:bosh'.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 28 Nov 2009 04:10:37 +0000 |
parents | 9206aabf0251 |
children | f521dd7c75b5 |
comparison
equal
deleted
inserted
replaced
28663:5b449584fead | 28664:931d6906291b |
---|---|
367 g_string_printf(packet, "<body " | 367 g_string_printf(packet, "<body " |
368 "rid='%" G_GUINT64_FORMAT "' " | 368 "rid='%" G_GUINT64_FORMAT "' " |
369 "sid='%s' " | 369 "sid='%s' " |
370 "to='%s' " | 370 "to='%s' " |
371 "xml:lang='en' " | 371 "xml:lang='en' " |
372 "xmlns='http://jabber.org/protocol/httpbind' " | 372 "xmlns='" NS_BOSH "' " |
373 "xmlns:xmpp='urn:xmpp:xbosh'", | 373 "xmlns:xmpp='" NS_XMPP_BOSH "'", |
374 ++conn->rid, | 374 ++conn->rid, |
375 conn->sid, | 375 conn->sid, |
376 conn->js->user->domain); | 376 conn->js->user->domain); |
377 | 377 |
378 if (conn->js->reinit) { | 378 if (conn->js->reinit) { |
565 "secure='true' " | 565 "secure='true' " |
566 "to='%s' " | 566 "to='%s' " |
567 "xml:lang='en' " | 567 "xml:lang='en' " |
568 "xmpp:version='1.0' " | 568 "xmpp:version='1.0' " |
569 "ver='1.6' " | 569 "ver='1.6' " |
570 "xmlns:xmpp='urn:xmpp:bosh' " | 570 "xmlns:xmpp='" NS_XMPP_BOSH "' " |
571 "rid='%" G_GUINT64_FORMAT "' " | 571 "rid='%" G_GUINT64_FORMAT "' " |
572 /* TODO: This should be adjusted/adjustable automatically according to | 572 /* TODO: This should be adjusted/adjustable automatically according to |
573 * realtime network behavior */ | 573 * realtime network behavior */ |
574 "wait='60' " | 574 "wait='60' " |
575 "hold='1' " | 575 "hold='1' " |
576 "xmlns='http://jabber.org/protocol/httpbind'/>", | 576 "xmlns='" NS_BOSH "'/>", |
577 conn->js->user->domain, | 577 conn->js->user->domain, |
578 ++conn->rid); | 578 ++conn->rid); |
579 | 579 |
580 purple_debug_misc("jabber", "SendBOSH Boot %s(%" G_GSIZE_FORMAT "): %s\n", | 580 purple_debug_misc("jabber", "SendBOSH Boot %s(%" G_GSIZE_FORMAT "): %s\n", |
581 conn->ssl ? "(ssl)" : "", buf->len, buf->str); | 581 conn->ssl ? "(ssl)" : "", buf->len, buf->str); |