Skip to content

Commit

Permalink
fix res content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jul 7, 2023
1 parent 25b98bf commit 029f7bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ func (b *Bartender) RenderPage(w http.ResponseWriter, r *http.Request) {

page := browser.MustPage(u.String()).MustWaitStable()

w.Header().Set("Content-Type", "text/html; charset=utf-8")

_, _ = w.Write([]byte(page.MustHTML()))
}

0 comments on commit 029f7bd

Please sign in to comment.