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:
committed by
Steve Chavez
parent
7be638f0f2
commit
1c33d2dd38
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user