strophe/strophejs — pull request #19 by AGWA (2013-08-09 17:40:33+00:00)
Title: boshclient.py example doesn't always authenticate successfully

The boshclient.py example is buggy because when examining the response from the XMPP server, it only looks at the first child of `` for the `` element. However, `` might not be the first child; for example, in the XML returned from Prosody 0.8, it's the second child.

This commit fixes the code to look at all the children of `` for a `` element.