Skip to content

Wrong encoding if use Controllers #41

@bosom

Description

@bosom

If use Controllers and set custom encoding, encoding don't work
Example:

goweb.MapBefore(func(c context.Context) error {
   // add a custom header
   c.HttpResponseWriter().Header().Set(`Content-Type`, `application/json; charset=UTF-8`)
   return nil
})

Bugfix this:
File: goweb/responders/goweb_api_responders.go

@@ -118,7 +118,9 @@ func (a *GowebAPIResponder) WriteResponseObject(ctx context.Context, status int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions