Skip to content

Commit 50bc90e

Browse files
committed
fix: handle null return warning in CaptureBodyAsync
1 parent cc8c12a commit 50bc90e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DebugProbe.AspNetCore/Handlers/DebugProbeHttpClientHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private async Task<string> CaptureBodyAsync(HttpContent? content)
109109
}
110110

111111
if (_options.MaxBodyCaptureSizeBytes <= 0)
112-
return null;
112+
return string.Empty;
113113

114114
var limit = _options.MaxBodyCaptureSizeBytes;
115115
var buffer = new byte[limit + 1];

0 commit comments

Comments
 (0)