Remove host header, add todo comment
This commit is contained in:
parent
f991a1f353
commit
3f4f1fd9d2
2 changed files with 1 additions and 1 deletions
|
@ -76,6 +76,7 @@ func BuildAuthorizedFetchCheck(forNonGet bool, forGet bool) webutils.HandlerBuil
|
||||||
h.ServeHTTP(w, r)
|
h.ServeHTTP(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// TODO: Implement RFC9421 checks next to cabage check
|
||||||
rawDate := r.Header.Get("Date")
|
rawDate := r.Header.Get("Date")
|
||||||
date, err := http.ParseTime(rawDate)
|
date, err := http.ParseTime(rawDate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -116,7 +116,6 @@ func applyDefaultHeaders(r *http.Request) {
|
||||||
"Linstrom "+shared.Version+" ("+config.GlobalConfig.General.GetFullDomain()+")",
|
"Linstrom "+shared.Version+" ("+config.GlobalConfig.General.GetFullDomain()+")",
|
||||||
)
|
)
|
||||||
r.Header.Add("Date", time.Now().UTC().Format(http.TimeFormat))
|
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")
|
r.Header.Add("Accept", "application/activity+json")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue