fix(ck): 修复令牌中的 /r 被误拆为换行并升级至 0.5.6

This commit is contained in:
yml2213
2026-11-12 13:16:48 +08:00
parent ceb31ed712
commit 90717d66d1
8 changed files with 17 additions and 31 deletions
+3 -3
View File
@@ -24,9 +24,9 @@ func TestSplitCookieLinesNormalizesLineBreaks(t *testing.T) {
want: []string{"ck-a", "ck-b", "ck-c", "ck-d"},
},
{
name: "slash_r_line_breaks",
input: "ck-a/r/nck-b/rck-c/nck-d",
want: []string{"ck-a", "ck-b", "ck-c", "ck-d"},
name: "slash_r_and_n_inside_token_are_preserved",
input: "yyuid=1; udb_cred=abc/rrZT/nXYZ",
want: []string{"yyuid=1; udb_cred=abc/rrZT/nXYZ"},
},
{
name: "slash_n_only_is_preserved",