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: rename/copy when using prefix #213

Merged
merged 1 commit into from
Jan 4, 2025
Merged

Conversation

hacdias
Copy link
Owner

@hacdias hacdias commented Jan 4, 2025

Fixes #193. This issue is caused by the fact that I was mixing the usage of webdav.Handler.Prefix and also stripping the prefix internally for the "Destination" header. On one side, this would create issues when matching the rules with r.URL.Path when using the prefix. On the other side, webdav.Handler would return an error because the prefix would no longer be in the 'Destination' header.

We now handle it internally, ensuring that we can still match the rules, and always handling the paths without the prefix.

@hacdias hacdias merged commit 617496c into main Jan 4, 2025
3 checks passed
@hacdias hacdias deleted the 193-fix/rename-with-prefix branch January 4, 2025 17:45
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.

File cannot be renamed when using "prefix" option
1 participant