v-analyzer up
and v-analyzer check-updates
fail with: "Invalid header key: 'Cache-Control'"
#136
Labels
bug
Something isn't working
Describe the bug
Expected Behavior
Check if it's the latest version, I guess by git commits.
(Shell equivalent lookup would resemble:
curl -fsS 'https://api.github.com/repos/vlang/v-analyzer/commits' | jq -r '.[0].sha'
orgit ls-remote https://github.com/vlang/v-analyzer main | cut -f1
)Current Behavior
cli execution error: Failed to download script: net.http.HeaderKeyError: Invalid header key: 'Cache-Control'
Reproduction Steps
Then
/ # bin/v-analyzer up
Possible Solution
Ignore unrecognized server headers.
Additional Information/Context
IPv4-only network at present location.
It shouldn't matter, but Github responds with lowercase headers over http/2 and titlecase headers over http/1.1 and http/1.0.
strace output
Environment details (
v doctor
output)Editor name
lazyvim (neovim) &| vscode
v-analyzer Version
v-analyzer version 0.0.4-beta.1.ea53875
VS Code Extension Version
v0.0.2 (vosca.vscode-v-analyzer)
The text was updated successfully, but these errors were encountered: