fix: add missing Content-Length to empty HTTP 201 responses

For when a preference other than return=representation is requested.
This commit is contained in:
Laurence Isla
2025-12-10 14:18:19 +00:00
parent 3b27b2220d
commit 9200a98087
4 changed files with 20 additions and 6 deletions
+3 -1
View File
@@ -20,7 +20,9 @@ postItem =
`shouldRespondWith`
""
{ matchStatus = 201
, matchHeaders = [matchHeaderAbsent hContentType] }
, matchHeaders = [ matchHeaderAbsent hContentType
, "Content-Length" <:> "0" ]
}
-- removes Items left over from POST, PUT, and PATCH
deleteItems =