Changed header type constant to be captial letters in both words, this fixes issue where all files are saved as json even if content type is provided