Closed AndreyShishkanov closed 6 years ago
If set charset in http post request, header "Content-Type" will be like "application/json; charset=utf-8". So to check if body is json, we need to check that "Content-Type" not strictly equal "application/json" but includes "application/json".
Thanks for the contribution!
If set charset in http post request, header "Content-Type" will be like "application/json; charset=utf-8". So to check if body is json, we need to check that "Content-Type" not strictly equal "application/json" but includes "application/json".