Commit 3eb6579
Make headers.set(self) a no-op instead of throwing. Makes it consistent with setAll
Motivation:
Makes the API contract of headers more consistent and simpler.
Modifications:
If self is passed to set then simply return
Result:
set and setAll will be consistent1 parent 6504d52 commit 3eb6579
3 files changed
Lines changed: 9 additions & 5 deletions
File tree
- codec-http/src/test/java/io/netty/handler/codec/http
- codec/src
- main/java/io/netty/handler/codec
- test/java/io/netty/handler/codec
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
| 393 | + | |
| 394 | + | |
395 | 395 | | |
| 396 | + | |
396 | 397 | | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
0 commit comments