Moved initial Content-type header from body to http and fixed unit test.