Commit e21cb2a
fix(macos): health check curl -f flag breaks 401 detection
curl -sf fails on 401 (auth-protected), causing || echo "000" to
append to the HTTP code output ("401" + "000" = "401000"). The
subsequent 401 string comparison never matches. Remove -f so curl
always returns the HTTP code on any response, and the fallback
only fires on connection failures.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ac0fc3b commit e21cb2a
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
| 766 | + | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| |||
0 commit comments