checks if content-type is undefined, throw next if so