Function to add any headers

I needed to add content type of the request (application/json) so I added this function.