fix(ci): Add Content-Length header to NuGet re-list request#401
Merged
Conversation
The NuGet API returns HTTP 411 (Length Required) on POST requests without a Content-Length header. Add Content-Length: 0 to the curl command since the re-list endpoint has no request body. Signed-off-by: currantw <taylor.curran@improving.com>
xShinnRyuu
approved these changes
May 13, 2026
6 tasks
alexr-bq
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the re-list NuGet workflow that fails with HTTP 411 (Length Required).
Issue Link
⚪ None
Features and Behaviour Changes
⚪ None — bug fix for the workflow added in #400.
Implementation
The NuGet re-list API (
POST /api/v2/package/{ID}/{VERSION}) requires aContent-Length: 0header when the request has no body. Without it, the server returns HTTP 411. Added the missing header to the curl command.Limitations
⚪ None
Testing
⚪ Will be validated by re-running the "Re-list NuGet Package" workflow with version
1.1.0after merge.Related Issues
Checklist
This Pull Request is related to one issue.Tests are added or updated and all checks pass.CHANGELOG.md,README.md,DEVELOPER.md, and other documentation files are updated.mainor releasemain, squash otherwise.