Update ResponseObject method to use correct application/json MIME type instead of text/json.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user