bridge: fix the order in which messages are retrieved from the receive queue - it needs to be fifo, otherwise as calls can depend on earlier out-of-band data messages
fix content-type header