Skip to content

Commit a582e84

Browse files
Copilotstephentoub
andcommitted
Reduce max response body length from 8KB to 1KB
1KB is sufficient to capture typical error messages while improving readability. Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 1d7fe0c commit a582e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/HttpResponseMessageExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace ModelContextProtocol;
88
/// </summary>
99
internal static class HttpResponseMessageExtensions
1010
{
11-
private const int MaxResponseBodyLength = 8 * 1024;
11+
private const int MaxResponseBodyLength = 1024;
1212

1313
/// <summary>
1414
/// Throws an <see cref="HttpRequestException"/> if the <see cref="HttpResponseMessage.IsSuccessStatusCode"/> property is <see langword="false"/>.

0 commit comments

Comments
 (0)