esl/MongooseIM — pull request #311 by lavrin (2014-11-13 13:08:34+00:00)
Title: Preserve initial `from` and `to` attributes in BOSH session state

The XEP[1] states:

The

element of the first request SHOULD possess the following
attributes (they SHOULD NOT be included in any other requests [...]):

- 'to' -- This attribute specifies the target domain of the first stream.

[...]

The

element of the first request MAY also possess
a 'from' attribute.

This fixes stream restart problem reported in #306.

[1]: http://xmpp.org/extensions/xep-0124.html