-
Notifications
You must be signed in to change notification settings - Fork 63
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
caldav: add support for getcontentlength property #83
caldav: add support for getcontentlength property #83
Conversation
eadeefa
to
3319296
Compare
Can we also set the |
Hm, interesting. I didn't do that because in my tests it was always already there. But I just read the docs for ResponseWriter, and they say
So I assume that is not to be relied upon and we should do it explicitly? |
Hm, that's interesting indeed. Yeah, the body could contain a lot of data with embedded resources (contact pictures, etc), so it's better to set it manually if the backend supplies it. |
5eedbfd
to
cd07ac5
Compare
Allow the backend to provide a value for the `getcontentlength` property as described in [RFC 2518 section 13.4][1]. The implementation treats is as optional, allthough it is a required property per RFC. Most clients do perfectly fine without it, though. Properly setting this in the backend makes the CalDAV collection listable with clients that do require it, e.g. cadaver. [1]: https://datatracker.ietf.org/doc/html/rfc2518#section-13.4
Now that the backend can supply this value, use it for explicitly setting the header in GET/HEAD responses if available.
cd07ac5
to
e69ac47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Allow the backend to provide a value for the
getcontentlength
propertyas described in RFC 2518 section 13.4.
The implementation treats is as optional, allthough it is a required
property per RFC. Most clients do perfectly fine without it, though.
Properly setting this in the backend makes the CalDAV collection
listable with clients that do require it, e.g. cadaver.