You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 228476d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(github): normalize trailing slash in env-provided host/URL vars
Strip whitespace and a trailing `/` so values like
`GH_API_URL=https://ghe.example.com/api/v3/` no longer produce double-slash
URLs (`.../api/v3//repos/...`). Also update the module doc to reflect that
host selection is env-var-only (still no config-file path to attacker-chosen
origins) and fix the missing blank line before `const ACCEPT` so
`cargo fmt --check` passes in CI.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
/// Trim whitespace and a trailing `/` so callers can rely on host / URL values being free of
28
+
/// surface-level user typos like `GH_API_URL=https://ghe.example.com/api/v3/`. Returns `None`
29
+
/// when the value collapses to empty after normalization so the caller can fall back to the
0 commit comments