Skip to content

Commit

Permalink
fix: set content type correctly on gin example (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
veloii authored Nov 3, 2023
1 parent 05248fc commit 9e8a645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/integration-gin/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type TemplRender struct {
}

func (t TemplRender) Render(w http.ResponseWriter) error {
t.WriteContentType(w)
w.WriteHeader(t.Code)
if t.Data != nil {
return t.Data.Render(context.Background(), w)
Expand Down

0 comments on commit 9e8a645

Please sign in to comment.