CCodeWhale Botfix(web): send old-domain redirects to https only
| Files | Last commit | Last update |
|---|---|---|
fix(web): send old-domain redirects to https only The deepseek-tui.com redirect worker kept the request's scheme when it swapped the host, so a plain-http request to the old domain was redirected to http://codewhale.net/... instead of https. The worker now sets the scheme to https before it sets the host, so every redirect from the old domain lands on https://codewhale.net with the same path and query. Evidence (source and local only; the worker is not deployed by this change): - A scratch harness outside the repository imports web/redirect/src/index.ts and calls fetch() for two http inputs and one https input. Before: 2 of 3 Location headers were http (exit 1). After: 3 of 3 are https (exit 0). - eslint redirect/src/index.ts: exit 0, no findings. - tsc --noEmit --strict on redirect/src/index.ts: exit 0. - No existing test covers this worker and none was added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> | 19 days ago |