]> source.dussan.org Git - gitea.git/commit
Remove meta charset from HTML5 documents (#24744)
authorsilverwind <me@silverwind.io>
Tue, 16 May 2023 05:13:23 +0000 (07:13 +0200)
committerGitHub <noreply@github.com>
Tue, 16 May 2023 05:13:23 +0000 (05:13 +0000)
commit30d922226778a469f01bbb1b933e65428f9266df
treef4423df49330dc2b3b7517e5814b1a42d829ee12
parentbdd3007c879c190e4f632ff65c4b393d7374653e
Remove meta charset from HTML5 documents (#24744)

When `<!DOCTYPE html>` is present, the default (and only valid) charset
it `utf-8` so it does not need to be specified.

Also we do serve with HTML with `Content-Type: text/html;
charset=utf-8`, so it is duplicate info anyways.
docs/layouts/alias.html
templates/base/head.tmpl
templates/status/500.tmpl
templates/swagger/ui.tmpl