Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): cannot install via a HTTP tunnel proxy #2824

Merged
merged 1 commit into from Feb 11, 2024

Conversation

stormyyd
Copy link
Contributor

@stormyyd stormyyd commented Dec 16, 2023

I found that the install script in cli/npm is not handling the HTTP proxy correctly, so I make a simple fix for that.

The proxy usage in former version is ok when the destination is a HTTP (without the S) website, but the install script will download tree-sitter binary file from GitHub by HTTPS protocol (which is good and I wouldn't to switching it to HTTP).

Using HTTP proxy as a tunnel (the HTTP CONNECT method) is the right way to do this. AFAIK all HTTP proxy implementation support the CONNECT method, this fix should be ok for all users.

@amaanq amaanq merged commit 0b7fc43 into tree-sitter:master Feb 11, 2024
13 checks passed
@amaanq
Copy link
Member

amaanq commented Feb 11, 2024

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants