diff options
author | 2022-02-06 15:00:57 +0100 | |
---|---|---|
committer | 2022-02-06 15:00:57 +0100 | |
commit | 5c9d20cea367cb0f675e353840c6cddcf33e9a99 (patch) | |
tree | fd472e1fb4692b2946f493a9e218a7aa24358888 /internal | |
parent | if accountDomain isn't set, use Host value instead (#380) (diff) | |
download | gotosocial-5c9d20cea367cb0f675e353840c6cddcf33e9a99.tar.xz |
don't bother negotiating Accept for webfinger (#381)
Diffstat (limited to 'internal')
-rw-r--r-- | internal/api/s2s/webfinger/webfingerget.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/internal/api/s2s/webfinger/webfingerget.go b/internal/api/s2s/webfinger/webfingerget.go index e05b8e388..5d237408f 100644 --- a/internal/api/s2s/webfinger/webfingerget.go +++ b/internal/api/s2s/webfinger/webfingerget.go @@ -28,7 +28,6 @@ import ( "github.com/sirupsen/logrus" "github.com/spf13/viper" "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/api" "github.com/superseriousbusiness/gotosocial/internal/config" ) @@ -68,11 +67,6 @@ func (m *Module) WebfingerGETRequest(c *gin.Context) { return } - if _, err := api.NegotiateAccept(c, api.JSONAcceptHeaders...); err != nil { - c.JSON(http.StatusNotAcceptable, gin.H{"error": err.Error()}) - return - } - // remove the acct: prefix if it's present trimAcct := strings.TrimPrefix(resourceQuery, "acct:") // remove the first @ in @whatever@example.org if it's present |