From 2bafd7daf542d985ee76d9079a30a602cb7be827 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Wed, 14 Feb 2024 11:13:38 +0000 Subject: [bugfix] add stricter checks during all stages of dereferencing remote AS objects (#2639) * add stricter checks during all stages of dereferencing remote AS objects * a comment --- cmd/gotosocial/action/testrig/testrig.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') diff --git a/cmd/gotosocial/action/testrig/testrig.go b/cmd/gotosocial/action/testrig/testrig.go index dc5f1c7dc..1220d6c23 100644 --- a/cmd/gotosocial/action/testrig/testrig.go +++ b/cmd/gotosocial/action/testrig/testrig.go @@ -107,6 +107,9 @@ var Start action.GTSAction = func(ctx context.Context) error { return &http.Response{ StatusCode: 200, Body: r, + Header: http.Header{ + "Content-Type": req.Header.Values("Accept"), + }, }, nil }, "")) mediaManager := testrig.NewTestMediaManager(&state) -- cgit v1.2.3