.net core 如何正确的读取body中的内容
private string BodyToJson() { var reader = new StreamReader(Request.Body); var contentFromBody = reader.ReadToEnd(); return contentFromBody; }
private string BodyToJson() { var reader = new StreamReader(Request.Body); var contentFromBody = reader.ReadToEnd(); return contentFromBody; }