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

HTTPS: Fix PUT resume #56

Closed
wants to merge 3 commits into from
Closed

HTTPS: Fix PUT resume #56

wants to merge 3 commits into from

Conversation

mihaigalos
Copy link
Owner

@mihaigalos mihaigalos commented Jun 19, 2022

PUT resume was tested with 2 files: 1st file was put and then the 2nd one.
Since they had the same name, the upload was resumed.
This, however, does not guarantee that a full resume is possible, since getting the problem lies in the getting of the already uploaded bytes.

EDIT: Consider using POST to rewrite the file entirely (no resume possible).

Fixes: #57.

@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2022

Codecov Report

Merging #56 (5f81857) into main (d19e192) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #56   +/-   ##
=======================================
  Coverage   96.93%   96.93%           
=======================================
  Files          17       17           
  Lines        1075     1076    +1     
=======================================
+ Hits         1042     1043    +1     
  Misses         33       33           
Impacted Files Coverage Δ
src/ftp.rs 97.01% <100.00%> (ø)
src/https.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d19e192...5f81857. Read the comment docs.

@mihaigalos
Copy link
Owner Author

Will stop pursuing this, since a server-side WebDAV config supporting PUT ranges is necessary.
I don't yet know how to enable this in the CI/local testing using the nginx.conf.

@mihaigalos mihaigalos closed this Jun 19, 2022
@mihaigalos mihaigalos deleted the fix_https_put_resume branch June 19, 2022 16:58
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.

Fix HTTP PUT when self-hosting
2 participants