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
...
ifrest=='//' {
// do nothing, protect this special case
}
elseif ((url.scheme !=''||!via_request) &&!rest.starts_with('///')) && rest.starts_with('//') {
...
Describe the bug
If a user tries to load a
vweb
webpage and the url ends with//
, then the page fails to load.This can have various consequences. For example gitly shows a Cloudflare error currently.
My cloud-deployed server goes to 100% CPU.
Locally, I just get an error on the browser.
Reproduction Steps
Create simple web server project
$
v new --web test
Run the server
$
v run .
Visit the problematic path
Load http://localhost:8082// on a web browser
Expected Behavior
The webpage loads. It either redirects to home, displays a 404 error or something normal.
Current Behavior
The webpage shows
The connection was reset
on Firefox andThis page isn’t working
on ChromeThe log shows
Possible Solution
No response
Additional Information/Context
Related to this
gitly
issue vlang/gitly#253V version
V 0.4.4 4640627
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: