[Fix] `nvm_download`: send a well-formed Authorization header on the wget path
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The wget path passed `NVM_AUTH_HEADER` as the raw header line (e.g. `--header "Bearer secret-token"`), omitting the `Authorization:` header name that the curl path includes. Per the documented usage (`NVM_AUTH_HEADER="Bearer secret-token"`) the value is the credential, so wget was sending a malformed header. Prefix it with `Authorization: ` to match the curl path.
authored by Jordan Harband · committed by Jordan Harband · parent 84079db · Browse files · 2 files+44 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+44 added−1 removed
- tests:+43 added−0 removed
- other:+1 added−1 removed