added support for headers on LongPollingTransport