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

handle local files via protocol file:/ in http #113

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

otavepto
Copy link
Contributor

@otavepto otavepto commented Dec 6, 2024

recently mods for source-engine based games started to use ISteamHttp to get/download the local preview_filepath (path to the mod preview image).

behavior changes:
forward slashes at the end of the url '/' are no longer saved in index.html, the website name will always be the target file.
example: response of wwww.example.com/ will be saved in the file wwww.example.com rather than wwww.example.com/index.html.
this was pretty inconsistent for me since games do not always add or ommit that forward slash, plus it makes the path shorter, avoiding the trouble on Windows.

@Detanup01
Copy link
Owner

Neat! this should fix #90 !

@Detanup01 Detanup01 merged commit 62fb59a into Detanup01:dev Dec 7, 2024
62 checks passed
@otavepto
Copy link
Contributor Author

otavepto commented Dec 7, 2024

no wait that issue still needs further look into, this just takes care of file:/ protocol and handles non-ASCII paths

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