Skip to content

fix(libstore): use CURLOPT_POSTFIELDSIZE_LARGE for POST requests#14337

Merged
xokdvium merged 1 commit intoNixOS:masterfrom
lovesegfault:fix-post-large
Oct 23, 2025
Merged

fix(libstore): use CURLOPT_POSTFIELDSIZE_LARGE for POST requests#14337
xokdvium merged 1 commit intoNixOS:masterfrom
lovesegfault:fix-post-large

Conversation

@lovesegfault
Copy link
Member

Motivation

Fix POST requests with data to use the correct curl option for specifying
body size. Previously used CURLOPT_INFILESIZE_LARGE for both POST and PUT,
but POST requires CURLOPT_POSTFIELDSIZE_LARGE.

This caused POST request bodies to not be sent correctly, manifesting as
S3 multipart CompleteMultipartUpload requests failing with "You must
specify at least one part" even though the XML body contained valid parts.

Context

Part-Of: #14330


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Fix POST requests with data to use the correct curl option for specifying
body size. Previously used CURLOPT_INFILESIZE_LARGE for both POST and PUT,
but POST requires CURLOPT_POSTFIELDSIZE_LARGE.

This caused POST request bodies to not be sent correctly, manifesting as
S3 multipart CompleteMultipartUpload requests failing with "You must
specify at least one part" even though the XML body contained valid parts.
@Ericson2314 Ericson2314 added this pull request to the merge queue Oct 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 23, 2025
@xokdvium xokdvium added this pull request to the merge queue Oct 23, 2025
Merged via the queue into NixOS:master with commit 324bfd8 Oct 23, 2025
16 checks passed
@lovesegfault lovesegfault deleted the fix-post-large branch October 24, 2025 06:27
@edolstra edolstra mentioned this pull request Dec 9, 2025
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.

2 participants