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

add content-length even if file size is 0 #607

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

kathia-barahona
Copy link
Contributor

About this change - What it does

pghoard is not adding content-length when file size is 0, currently rohmu will by default try multipart upload for null content-length file objects.

Resolves: #BF-2330

@kathia-barahona kathia-barahona requested a review from a team November 28, 2023 12:39
pghoard/transfer.py Outdated Show resolved Hide resolved
@kathia-barahona kathia-barahona force-pushed the kathiabarahona/uploading_empty_file branch from 2aae069 to 23ed525 Compare November 28, 2023 12:40
@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2023

Codecov Report

Merging #607 (23ed525) into main (ae00595) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #607      +/-   ##
==========================================
- Coverage   91.33%   91.20%   -0.13%     
==========================================
  Files          32       32              
  Lines        4731     4731              
==========================================
- Hits         4321     4315       -6     
- Misses        410      416       +6     
Files Coverage Δ
pghoard/transfer.py 98.69% <100.00%> (ø)

... and 3 files with indirect coverage changes

@rdunklau rdunklau merged commit 8a2d730 into main Nov 28, 2023
7 checks passed
@rdunklau rdunklau deleted the kathiabarahona/uploading_empty_file branch November 28, 2023 13:42
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.

3 participants