This repository was archived by the owner on Aug 7, 2026. It is now read-only.
Commit 5629fa5
authored
feat(metrics): tag cryptify uploads with X-Cryptify-Source: outlook (#96)
Adds the X-Cryptify-Source: outlook header to clientHeaders() so
cryptify's per-channel upload metrics
(encryption4all/cryptify#102) classify this add-in deterministically.
cryptify's detect_channel checks the Origin header before falling back
to User-Agent substring matching. The add-in is served from
addin.*.postguard.eu, which matches cryptify's `contains("postguard.")`
rule and would otherwise shadow the User-Agent "outlook" check —
labeling Outlook uploads as `website` / `staging-website` instead of
`outlook`. Setting the explicit header here removes the ambiguity.1 parent c4ca35c commit 5629fa5
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
0 commit comments