Update ResponseObject method to use correct application/json MIME type instead of text/json.

This commit is contained in:
2025-08-08 17:46:46 +02:00
parent ef9c2b97a2
commit 7aa1661784

View File

@@ -26,7 +26,7 @@ public static class ExtensionMethods
return string.Empty; return string.Empty;
} }
public static void ResponseObject(this IWebContext context, object obj, string contentType = "text/json") public static void ResponseObject(this IWebContext context, object obj, string contentType = "application/json")
{ {
context.ResponseContentType = contentType; context.ResponseContentType = contentType;
string strObject = JsonWriter.WriteObject(obj); string strObject = JsonWriter.WriteObject(obj);