You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Usage/ProvideHttpClientHandlerMaxResponseHeaderLengthValueCorrectly.cs
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -41,25 +41,31 @@ public override void Initialize(AnalysisContext context)
Copy file name to clipboardExpand all lines: src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Usage/ProvideHttpClientHandlerMaxResponseHeaderLengthValueCorrectlyTests.cs
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -27,26 +27,42 @@ public class TestClass {
27
27
28
28
public void TestMethod() {
29
29
30
-
HttpClientHandler handler3 = new HttpClientHandler()
30
+
HttpClientHandler handler = new HttpClientHandler()
31
31
{
32
32
MaxResponseHeadersLength = GetValue()
33
33
};
34
34
35
-
HttpClientHandler handler = new HttpClientHandler()
35
+
HttpClientHandler handler2 = new HttpClientHandler()
36
36
{
37
37
{|#0:MaxResponseHeadersLength = val|}
38
38
};
39
39
40
-
HttpClientHandler handler2 = new HttpClientHandler()
40
+
HttpClientHandler handler3 = new HttpClientHandler()
41
41
{
42
42
{|#1:MaxResponseHeadersLength = 1414|}
43
43
};
44
+
45
+
HttpClientHandler handler4 = new HttpClientHandler()
46
+
{
47
+
MaxResponseHeadersLength = int.MaxValue
48
+
};
49
+
50
+
SocketsHttpHandler handler5 = new SocketsHttpHandler()
51
+
{
52
+
MaxResponseHeadersLength = int.MaxValue
53
+
};
54
+
55
+
SocketsHttpHandler handler6 = new SocketsHttpHandler()
0 commit comments