Commit 7e62de3
Fix CR in auth header
Normalize Windows CRLF line endings out of the serialized PGP public/private key segments in the robot Authorization header. Raw carriage-return characters produce an HTTP-invalid header value, causing window.fetch to throw TypeError: invalid header value on every authenticated request (web, desktop, and Android). Switching from split('\n').join('\\') to replace(/[\r\n]+/g, '\\') strips both CR and LF before they ever reach the header, while preserving the backslash-separated key contract expected by the coordinator (api/utils.py).1 parent f768a54 commit 7e62de3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments