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

Feature Request: Support for out-of-spec unquoted getetag values #165

Open
EtienneBruines opened this issue Jul 3, 2024 · 0 comments
Open

Comments

@EtienneBruines
Copy link

Some WebDAV servers do not return quoted etag values (to make them re-usable for the ETag HTTP response header), e.g. haiwen/seafdav#82 and photoprism/photoprism#3495 even though they should.

Would it be possible/reasonable to accept unquoted ETag values? To make this library compatible with a wider range of servers?

Potentially like #69 although I was thinking modifying

return fmt.Errorf("webdav: failed to unquote ETag: %v", err)
to not return an error if it's simply an alphanumerical string (a hash or something) that just doesn't have quotes.

What do you think?

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

No branches or pull requests

1 participant