Skip to content

Commit 8a4bc18

Browse files
committed
API: minor change
1 parent 3abe102 commit 8a4bc18

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Presentation/SmartStore.Web.Framework/WebApi/WebApiStartupTask.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public void Start()
3535
//config.Formatters.InsertRange(0, oDataFormatters);
3636

3737
var json = config.Formatters.JsonFormatter;
38-
json.SerializerSettings.Formatting = Formatting.Indented;
3938
json.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
4039
json.SerializerSettings.ContractResolver = new WebApiContractResolver(config.Formatters.JsonFormatter);
4140
json.AddQueryStringMapping("$format", "json", "application/json");
@@ -45,7 +44,7 @@ public void Start()
4544
xml.Indent = true;
4645
xml.AddQueryStringMapping("$format", "xml", "application/xml");
4746

48-
config.AddODataQueryFilter(new WebApiQueryableAttribute());
47+
config.AddODataQueryFilter(new WebApiQueryableAttribute());
4948

5049
var corsAttribute = new EnableCorsAttribute("*", "*", "*", WebApiGlobal.Header.CorsExposed);
5150
config.EnableCors(corsAttribute);

0 commit comments

Comments
 (0)