Remove host header, add todo comment

This commit is contained in:
Melody Becker 2025-05-16 11:31:29 +02:00
parent f991a1f353
commit 3f4f1fd9d2
2 changed files with 1 additions and 1 deletions

View file

@ -76,6 +76,7 @@ func BuildAuthorizedFetchCheck(forNonGet bool, forGet bool) webutils.HandlerBuil
h.ServeHTTP(w, r)
return
}
// TODO: Implement RFC9421 checks next to cabage check
rawDate := r.Header.Get("Date")
date, err := http.ParseTime(rawDate)
if err != nil {

View file

@ -116,7 +116,6 @@ func applyDefaultHeaders(r *http.Request) {
"Linstrom "+shared.Version+" ("+config.GlobalConfig.General.GetFullDomain()+")",
)
r.Header.Add("Date", time.Now().UTC().Format(http.TimeFormat))
r.Header.Add("Host", config.GlobalConfig.General.GetFullDomain())
r.Header.Add("Accept", "application/activity+json")
}