bug fix: add content-type to textresponse header

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