(ok bool)
| 738 | } |
| 739 | |
| 740 | func boolStatus(ok bool) string { |
| 741 | if ok { |
| 742 | return "ok" |
| 743 | } |
| 744 | return "unhealthy" |
| 745 | } |
| 746 | |
| 747 | // corsOriginResolver returns a dynamic origin for context-aware mode. |
| 748 | // When ctxRegistry has an entry for X-Forwarded-Host, returns (origin, true). |