Skip to content

Commit c8d80ba

Browse files
committed
fix: adding chartset to the response
1 parent ee395bd commit c8d80ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Meta struct {
4949
// - errs: A slice of Error structs to describe issues. Use `nil` for successful responses.
5050
// - meta: Optional metadata, such as pagination information. Use `nil` if not needed.
5151
func SendResponse[T any](w http.ResponseWriter, code int, data T, errs []Error, meta *Meta) {
52-
w.Header().Set("Content-Type", "application/json")
52+
w.Header().Set("Content-Type", "application/json; charset=utf-8")
5353

5454
response := &Response[T]{
5555
Data: data,

0 commit comments

Comments
 (0)