Bug 65974 - Default page does not set charset
Summary: Default page does not set charset
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.41
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-22 11:25 UTC by apache.tgoeg
Modified: 2022-03-22 11:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description apache.tgoeg 2022-03-22 11:25:04 UTC
A request to the base domain of a static HTML site (implicit index.html) does not add a valid "charset=" attribute in the header, just

Content-Type: text/html

whereas a request to a file below the root *does* get a charset attribute.

AddDefaultCharset UTF-8

also does not help here, see https://bz.apache.org/bugzilla/show_bug.cgi?id=65699

This is a problem for some clients/automated tools (e.g. https://github.com/linkchecker)

Tested using

curl -v https://site
and
curl -v https://site/page