summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-02-14 11:13:38 +0000
committerLibravatar tobi <tobi.smethurst@protonmail.com>2024-02-14 14:06:55 +0100
commitb9013a8ab352cf8fbfe07387bc1a291c240dd21f (patch)
tree96b10415c116975168ada554c5be7f181486ab0f /cmd
parent[bugfix] Don't return Account or Status if new and dereferencing failed, othe... (diff)
downloadgotosocial-b9013a8ab352cf8fbfe07387bc1a291c240dd21f.tar.xz
[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
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotosocial/action/testrig/testrig.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/gotosocial/action/testrig/testrig.go b/cmd/gotosocial/action/testrig/testrig.go
index d6bc92215..a1796eae7 100644
--- a/cmd/gotosocial/action/testrig/testrig.go
+++ b/cmd/gotosocial/action/testrig/testrig.go
@@ -104,6 +104,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)