Skip to content

Fix 404 webviews and tar endpoint #2336

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

Merged
merged 2 commits into from
Nov 19, 2020
Merged

Fix 404 webviews and tar endpoint #2336

merged 2 commits into from
Nov 19, 2020

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Nov 18, 2020

Related: #2329

An extra slash caused a 404 (was /webview//vscode-resource).
It was checking the request path but for tars the path is in the query
variable so the request path is irrelevant.
// Used by VS Code to load extensions into the web worker.
const tar = Array.isArray(req.query.tar) ? req.query.tar[0] : req.query.tar
if (typeof tar === "string") {
ensureAuthenticated(req)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Def need to mention this bug in release notes.

@code-asher code-asher merged commit 08b9e9a into master Nov 19, 2020
@code-asher code-asher deleted the webview-404 branch November 19, 2020 16:15
@nhooyr nhooyr added this to the v3.7.2 milestone Nov 19, 2020
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.

2 participants