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 double slash when using / as handler #26

Merged
merged 2 commits into from
May 24, 2021

Conversation

cbix
Copy link
Contributor

@cbix cbix commented Dec 24, 2020

#23 apparently broke my config which has uploadSubDir = "/" by trying to set // as the handler path.
This PR simply trims all trailing slashes before appending one, though this issue really only occurs when subpath == /...

@sysvinit
Copy link
Contributor

sysvinit commented Feb 28, 2021

Ah whoops, that seems like it's my fault! My approach would probably have been to guard the subpath += "/" behind an if subpath != "/" ..., but this would work just as well -- I'm happy for this change to go in.

@ThomasLeister ThomasLeister merged commit 990373d into ThomasLeister:develop May 24, 2021
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.

3 participants