Applying hotfix to make checks on the content-type header lazier