fixed bug on routing when parsing application/json valid headers