Handle content-type header properly

This will fix the message text in firefox displaying XML Object
in the message bar.