Commit c335233
committed
Only set Partitioned cookie attribute when true
The session cookie's Partitioned attribute was set to "" for any
non-null value, so an explicit `partitioned=false` was rendered the
same as `true`. PropertyMapper.to() only filters null, so
Boolean.FALSE reached the consumer and the attribute was always set.
Use whenTrue() so the attribute is set only when partitioned is true,
leaving false and unset to fall through to the container default.
Signed-off-by: Lee JiWon <dlwldnjs1009@gmail.com>1 parent 262437f commit c335233
2 files changed
Lines changed: 16 additions & 2 deletions
File tree
- module/spring-boot-web-server/src
- main/java/org/springframework/boot/web/server/servlet
- testFixtures/java/org/springframework/boot/web/server/servlet
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
902 | 916 | | |
903 | 917 | | |
904 | 918 | | |
| |||
1226 | 1240 | | |
1227 | 1241 | | |
1228 | 1242 | | |
1229 | | - | |
| 1243 | + | |
1230 | 1244 | | |
1231 | 1245 | | |
1232 | 1246 | | |
| |||
0 commit comments