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-12 14:47:26 -05:00
committed by Steve Chavez
parent 7be638f0f2
commit 1c33d2dd38
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 =