Skip to content

Commit

Permalink
changed default MaxBytes to 1MB
Browse files Browse the repository at this point in the history
(cherry picked from commit 6cbeaa4)
  • Loading branch information
matthiasguentert authored and ColinNg committed Feb 14, 2024
1 parent 9c8fc01 commit 3749d5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<MinVerTagPrefix>v</MinVerTagPrefix>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Azureblue.ApplicationInsights.RequestLogging-with-Sensitive-Data-Filter</Title>
<AssemblyVersion>2.1.2</AssemblyVersion>
<AssemblyVersion>2.1.4</AssemblyVersion>
<FileVersion></FileVersion>
<Version>2.1.3</Version>
<Version>2.1.4</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public BodyLoggerOptions()
/// <summary>
/// Defines the amount of bytes that should be read from HTTP context
/// </summary>
public int MaxBytes { get; set; } = 80000;
public int MaxBytes { get; set; } = 1000;

/// <summary>
/// Defines the text to append in case the body should be truncated <seealso cref="MaxBytes"/>
Expand Down
6 changes: 6 additions & 0 deletions test/ManualTests/Controllers/TestController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ public ActionResult<TestData> Test([FromBody] TestData data)
{
return Ok(data);
}

[HttpPost("maxbytes")]
public ActionResult<string> MaxBytesTest([FromForm] string data)
{
return Ok(data);
}
}
}

Expand Down

0 comments on commit 3749d5b

Please sign in to comment.