-
Notifications
You must be signed in to change notification settings - Fork 3
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
Set proper headers in upload requests #935
Conversation
@juliushaertl @icewind1991 how much of those custom headers are still relevant today? Some old refs: |
Maybe @icewind1991 has some more input |
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.
Small comment, keeping OC-Total-Length doesn't hurt to have just in case but could probably also be removed separately
9717d30
to
a1df8fe
Compare
Tests need some adjustment :) |
See https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/basic.html#request-headers Signed-off-by: Louis Chemineau <louis@chmn.me>
a1df8fe
to
5900f74
Compare
Adapted on the API side. |
Codecov Report
@@ Coverage Diff @@
## master #935 +/- ##
==========================================
+ Coverage 92.10% 92.30% +0.20%
==========================================
Files 3 3
Lines 76 78 +2
Branches 14 14
==========================================
+ Hits 70 72 +2
Misses 3 3
Partials 3 3
|
Currently, when you upload a file, the last modified time is not forwarded to the server, so it becomes the current time.
See https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/basic.html#request-headers
Can we merge the
destinationFile
andheaders
params?