fix bug: invalid media type return 415.