Skip to content

Commit 4ecd1ac

Browse files
author
Hein
committed
Fixed to StatusNoContent
1 parent 2b1aea0 commit 4ecd1ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/restheadspec/handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ func (h *Handler) sendResponseWithOptions(w common.ResponseWriter, data interfac
21102110
w.SetHeader("Content-Type", "application/json")
21112111
if data == nil {
21122112
data = map[string]interface{}{}
2113-
w.WriteHeader(http.StatusPartialContent)
2113+
w.WriteHeader(http.StatusNoContent)
21142114
} else {
21152115
w.WriteHeader(http.StatusOK)
21162116
}
@@ -2166,7 +2166,7 @@ func (h *Handler) sendFormattedResponse(w common.ResponseWriter, data interface{
21662166
httpStatus := http.StatusOK
21672167
if data == nil {
21682168
data = map[string]interface{}{}
2169-
httpStatus = http.StatusPartialContent
2169+
httpStatus = http.StatusNoContent
21702170
}
21712171

21722172
if options.SingleRecordAsObject {

0 commit comments

Comments
 (0)