action/context: add capability to set response headers

This commit is contained in:
WeebDataHoarder
2025-04-28 12:40:03 +02:00
parent 61655b6a02
commit e49c4ae72f
5 changed files with 29 additions and 4 deletions

View File

@@ -243,7 +243,7 @@ func (d *RequestData) HasValidChallenge(id Id) bool {
return d.ChallengeVerify[id].Ok()
}
func (d *RequestData) Headers(headers http.Header) {
func (d *RequestData) RequestHeaders(headers http.Header) {
headers.Set("X-Away-Id", d.Id.String())
for id, result := range d.ChallengeVerify {