Skip to content

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

@EtienneBruines

Description

@EtienneBruines

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions