From 2e4d9be4826c16e73a40341b141f5da9faa18fdc Mon Sep 17 00:00:00 2001 From: currantw Date: Wed, 13 May 2026 15:04:02 -0700 Subject: [PATCH] fix(ci): Add Content-Length header to NuGet re-list request 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 --- .github/workflows/relist-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/relist-package.yml b/.github/workflows/relist-package.yml index 4e3348e3..bbfcc7a2 100644 --- a/.github/workflows/relist-package.yml +++ b/.github/workflows/relist-package.yml @@ -23,6 +23,7 @@ jobs: echo "Re-listing Valkey.Glide version $PACKAGE_VERSION..." HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X POST \ -H "X-NuGet-ApiKey: $NUGET_API_KEY" \ + -H "Content-Length: 0" \ "https://www.nuget.org/api/v2/package/Valkey.Glide/$PACKAGE_VERSION") echo "Response status: $HTTP_STATUS"