backport from 1.8 (rev #10004)

allow digits in the Content-Type
Victor Fernandez Martinez