However there is one possible improvement. The Content-Type specification allows an extra parameter to be added after the MIME type part, for example "application/json; charset=UTF-8".
So your BodyParser should parse the value of Content-Type header, and pass only the part before ";" to construct ContentType.
Great work! Really useful to me.
However there is one possible improvement. The Content-Type specification allows an extra parameter to be added after the MIME type part, for example "application/json; charset=UTF-8".
So your BodyParser should parse the value of Content-Type header, and pass only the part before ";" to construct ContentType.