set charset on html content type
This commit is contained in:
parent
b218a75ea8
commit
2726c60608
2 changed files with 2 additions and 2 deletions
|
|
@ -251,7 +251,7 @@ func writeHtml(w http.ResponseWriter, element Ren) error {
|
|||
if element == nil {
|
||||
return nil
|
||||
}
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
_, err := fmt.Fprint(w, Render(element, WithDocType()))
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
## Other languages and related projects
|
||||
|
||||
If you are not a Go user but are interested in the idea of what htmgo is, you might want to check out these other projects:
|
||||
If you're not a Go user but are interested in the idea of what htmgo is, you might want to check out these other projects:
|
||||
|
||||
#### Python
|
||||
- [fastht.ml](https://fastht.ml/) - Modern web applications in pure Python, Built on solid web foundations, not the latest fads - with FastHTML you can get started on anything from simple dashboards to scalable web applications in minutes.
|
||||
|
|
|
|||
Loading…
Reference in a new issue