Fix server error when ContentType include charset.

Docker-DCO-1.1-Signed-off-by: Jialin Tian <himurakenshin54@gmail.com> (github: kenshin54)