增加response的content-type为text/html时输出字符串
This commit is contained in:
@@ -323,7 +323,7 @@ namespace Getf_Service_Transfer_Client_Service_HttpHandler
|
|||||||
if (contentType == null) return true;
|
if (contentType == null) return true;
|
||||||
contentType = contentType.ToLower();
|
contentType = contentType.ToLower();
|
||||||
//"text/",
|
//"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));
|
return list.Any(m => contentType.Contains(m));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user