Ensuring to send the proper content-type header