Skip to content

Commit 485e420

Browse files
committed
fix: set Content-Type header to application/json in RespondOk function
1 parent b3d01c0 commit 485e420

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/core/success.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
)
77

88
func RespondOk(res http.ResponseWriter, data any) {
9+
res.Header().Add("Content-Type", "application/json")
910
json.NewEncoder(res).Encode(data)
1011
}
1112

0 commit comments

Comments
 (0)