Added middleware to change the default content-type