Skip to content

Commit 6cf9678

Browse files
Updating maxDepth in Newtonsoft default settings (#8548)
* Update Program.cs * Added comments * Removing unnecessary comments * Ms build version * Updating TLS version * Taking secure SSL and TLS * Cleanup proj file * updating vs image * Removing node installation from AppVeyor * AppVeyor Host IP
1 parent 75d8e48 commit 6cf9678

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ artifacts:
3535
- path: bin\Packages\*.nupkg
3636
name: NuGet
3737
hosts:
38-
api.nuget.org: 93.184.221.200
39-
dist.nuget.org: 93.184.221.200
38+
api.nuget.org: 72.21.81.200

src/WebJobs.Script.Host/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System;
55
using Microsoft.Azure.WebJobs.Script.Config;
6+
using Newtonsoft.Json;
67

78
namespace Microsoft.Azure.WebJobs.Script.Host
89
{
@@ -27,6 +28,8 @@ public static void Main(string[] args)
2728
IsSelfHost = true
2829
};
2930

31+
JsonConvert.DefaultSettings = () => new JsonSerializerSettings { MaxDepth = 128 };
32+
3033
var scriptHostManager = new ScriptHostManager(config);
3134
scriptHostManager.RunAndBlock();
3235
}

0 commit comments

Comments
 (0)