|
|
@@ -369,8 +369,10 @@ func TestBuildXhttpExtra_IncludesClientSideFieldsWhenPresent(t *testing.T) {
|
|
|
t.Fatalf("extra missing %q: %#v", key, extra)
|
|
|
}
|
|
|
}
|
|
|
- if _, ok := extra["mode"]; ok {
|
|
|
- t.Fatalf("mode should stay as a top-level query parameter, got extra %#v", extra)
|
|
|
+ // mode rides inside extra (in addition to the flat param) so clients
|
|
|
+ // that only read the extra JSON keep the xhttp mode (#5446).
|
|
|
+ if extra["mode"] != "packet-up" {
|
|
|
+ t.Fatalf("extra[mode] = %#v, want packet-up", extra["mode"])
|
|
|
}
|
|
|
|
|
|
headers, ok := extra["headers"].(map[string]any)
|