Skip to content

Commit fb7a497

Browse files
authored
Fix CA2262 example (#42818)
1 parent 8a1b320 commit fb7a497

File tree

1 file changed

+4
-4
lines changed
  • docs/fundamentals/code-analysis/quality-rules

1 file changed

+4
-4
lines changed

docs/fundamentals/code-analysis/quality-rules/ca2262.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ HttpClientHandler handler = new()
4040
// Violation
4141
MaxResponseHeadersLength = 512
4242

43-
// Fix
44-
MaxResponseHeadersLength = 0.512
43+
// Fix (it is not possible to specify a limit lower than 1 KB)
44+
MaxResponseHeadersLength = 1
4545
};
4646
```
4747

@@ -51,8 +51,8 @@ Dim handler As New HttpClientHandler With {
5151
' Violation
5252
.MaxResponseHeadersLength = 512
5353

54-
' Fix
55-
.MaxResponseHeadersLength = 0.512
54+
' Fix (it is not possible to specify a limit lower than 1 KB)
55+
.MaxResponseHeadersLength = 1
5656
}
5757
```
5858

0 commit comments

Comments
 (0)