fix: add Content-type to textresponse header

other wise, the Content-type will always be text/html even though you
pass 'xml' as second argument to the constructor.