Commit 5303710
authored
feat(metrics): tag cryptify uploads with X-Cryptify-Source: thunderbird (#121)
Adds X-Cryptify-Source: thunderbird to PG_CLIENT_HEADER so cryptify's
per-channel upload metrics (encryption4all/cryptify#102) classify this
add-in deterministically rather than via the User-Agent substring
fallback.
Thunderbird WebExtensions don't always present a stable Origin
(can be `moz-extension://<uuid>` or null), and the User-Agent fallback
is the last layer of cryptify's detect_channel. Setting the explicit
header at the source removes any environment-dependent ambiguity and is
symmetric with parallel PRs in postguard-website and
postguard-outlook-addon.1 parent 52d332f commit 5303710
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
| |||
0 commit comments