Handles user defined headers and selects a default content type if needed