Content Types and Respose fixes for restheadpsec

This commit is contained in:
Hein
2025-11-07 10:55:42 +02:00
parent eefed23766
commit 1adca4c49b
2 changed files with 23 additions and 22 deletions

View File

@@ -695,7 +695,7 @@ func (h *Handler) sendFormattedResponse(w common.ResponseWriter, data interface{
if options.CleanJSON {
data = h.cleanJSON(data)
}
w.SetHeader("Content-Type", "application/json")
// Format response based on response format option
switch options.ResponseFormat {
case "simple":