Commit 882ace2
committed
fix(relay): make Code.gs header strip opt-in so Rust config is sole control
The comment in Code.gs and Config::strip_noise_response_headers claimed that
setting strip_noise_response_headers = false in config.toml would pass all
headers through "regardless of what Code.gs sends." This was wrong: with
STRIP_NOISE_RESPONSE_HEADERS = true in Code.gs those headers are removed from
the JSON before Rust receives it, so the Rust toggle cannot restore them.
Fix: change Code.gs STRIP_NOISE_RESPONSE_HEADERS default from true to false.
GAS-side stripping is now opt-in — operators who want the extra bandwidth
reduction can flip it manually after deploying. With the default false, the
Rust config.toml field is the single user-facing control that works correctly
end-to-end: strip_noise_response_headers = false shows raw headers in the
browser without requiring a simultaneous Code.gs redeploy.
Update comments in Code.gs, config.rs, and domain_fronter.rs to document
the relationship between the two layers accurately.1 parent b91b83d commit 882ace2
3 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | 55 | | |
58 | | - | |
| 56 | + | |
| 57 | + | |
59 | 58 | | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | | - | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
444 | 448 | | |
445 | 449 | | |
446 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
419 | 421 | | |
420 | 422 | | |
421 | 423 | | |
| |||
0 commit comments