Skip to content

Commit 029f7bd

Browse files
committed
fix res content-type
1 parent 25b98bf commit 029f7bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service.go

+2
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ func (b *Bartender) RenderPage(w http.ResponseWriter, r *http.Request) {
5757

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

60+
w.Header().Set("Content-Type", "text/html; charset=utf-8")
61+
6062
_, _ = w.Write([]byte(page.MustHTML()))
6163
}

0 commit comments

Comments
 (0)