From 4ecd1ac17e970d1410edb739845dbc19042b63b6 Mon Sep 17 00:00:00 2001 From: Hein Date: Thu, 18 Dec 2025 13:20:39 +0200 Subject: [PATCH] Fixed to StatusNoContent --- pkg/restheadspec/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/restheadspec/handler.go b/pkg/restheadspec/handler.go index d0b1424..b1b4826 100644 --- a/pkg/restheadspec/handler.go +++ b/pkg/restheadspec/handler.go @@ -2110,7 +2110,7 @@ func (h *Handler) sendResponseWithOptions(w common.ResponseWriter, data interfac w.SetHeader("Content-Type", "application/json") if data == nil { data = map[string]interface{}{} - w.WriteHeader(http.StatusPartialContent) + w.WriteHeader(http.StatusNoContent) } else { w.WriteHeader(http.StatusOK) } @@ -2166,7 +2166,7 @@ func (h *Handler) sendFormattedResponse(w common.ResponseWriter, data interface{ httpStatus := http.StatusOK if data == nil { data = map[string]interface{}{} - httpStatus = http.StatusPartialContent + httpStatus = http.StatusNoContent } if options.SingleRecordAsObject {