Fixed bug in setting of Content-Type header.