diff options
author | 2024-02-14 11:13:38 +0000 | |
---|---|---|
committer | 2024-02-14 12:13:38 +0100 | |
commit | 2bafd7daf542d985ee76d9079a30a602cb7be827 (patch) | |
tree | 8817fe6f202155d660d75c17cd78ff5dae3d4530 /cmd | |
parent | [feature] Add metrics for instance user count, statuses count and federating ... (diff) | |
download | gotosocial-2bafd7daf542d985ee76d9079a30a602cb7be827.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.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) |