Skip to content

Commit a3c1140

Browse files
feat(options): rename max body capture size option to use kilobytes
1 parent f6aa383 commit a3c1140

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

DebugProbe.AspNetCore/Middleware/DebugProbeMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public async Task Invoke(HttpContext context, DebugEntryStore store)
5757
return;
5858
}
5959

60-
var maxBodySize = _options.MaxBodyCaptureSize;
60+
var maxBodySize = _options.MaxBodyCaptureSizeKb * 1024;
6161

6262
var requestBody = await CaptureRequestBodyAsync(context, maxBodySize);
6363

DebugProbe.AspNetCore/Options/DebugProbeOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class DebugProbeOptions
44
{
55
public int MaxEntries { get; set; } = 20;
66

7-
public int MaxBodyCaptureSize { get; set; } = 1024 * 256;
7+
public int MaxBodyCaptureSizeKb { get; set; } = 256;
88

99
public bool AllowLocalCompareTargets { get; set; }
1010

0 commit comments

Comments
 (0)