增加response的content-type为text/html时输出字符串

This commit is contained in:
范露尧
2023-03-15 14:15:02 +08:00
parent 3cd51372b1
commit 275017afdf

View File

@@ -323,7 +323,7 @@ namespace Getf_Service_Transfer_Client_Service_HttpHandler
if (contentType == null) return true;
contentType = contentType.ToLower();
//"text/",
var list = new string[] { "application/json", "application/xml" };
var list = new string[] { "text/html", "application/json", "application/xml" };
return list.Any(m => contentType.Contains(m));
}
}