Made the Content-Type header based on the HTTP method.