Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Commit e0e2fe1

Browse files
authored
Merge pull request #195 from Particular/hotfix-2.1.7
Remove API quota to allow serving large collections of message types
2 parents 61bf395 + 94c1c1f commit e0e2fe1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/ServiceControl.Monitoring/Http/HttpEndpoint.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ namespace ServiceControl.Monitoring.Http
77
{
88
using System;
99
using Autofac;
10+
using Nancy.Bootstrapper;
1011
using Nancy.Bootstrappers.Autofac;
1112

1213
class HttpEndpoint : Feature
@@ -65,6 +66,13 @@ class Bootstrapper : AutofacNancyBootstrapper
6566
{
6667
readonly ILifetimeScope lifetimeScope;
6768

69+
protected override void ApplicationStartup(ILifetimeScope container, IPipelines pipelines)
70+
{
71+
Nancy.Json.JsonSettings.MaxJsonLength = int.MaxValue;
72+
73+
base.ApplicationStartup(container, pipelines);
74+
}
75+
6876
public Bootstrapper(ILifetimeScope lifetimeScope)
6977
{
7078
this.lifetimeScope = lifetimeScope;

0 commit comments

Comments
 (0)