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)
|
||||
return
|
||||
}
|
||||
// TODO: Implement RFC9421 checks next to cabage check
|
||||
rawDate := r.Header.Get("Date")
|
||||
date, err := http.ParseTime(rawDate)
|
||||
if err != nil {
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue