From 113186ce4e5bff2141b826d5da7eb2807eda4b45 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 21 Jul 2021 17:46:59 +0200 Subject: lil webfingy fix (#106) * lil webfingy fix * return requested content type from fede requests --- internal/api/s2s/webfinger/webfingerget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/api/s2s/webfinger') diff --git a/internal/api/s2s/webfinger/webfingerget.go b/internal/api/s2s/webfinger/webfingerget.go index 1d723e67c..ee3176413 100644 --- a/internal/api/s2s/webfinger/webfingerget.go +++ b/internal/api/s2s/webfinger/webfingerget.go @@ -64,7 +64,7 @@ func (m *Module) WebfingerGETRequest(c *gin.Context) { return } - if accountDomain != m.config.AccountDomain { + if accountDomain != m.config.AccountDomain && accountDomain != m.config.Host { l.Debugf("aborting request because accountDomain %s does not belong to this instance", accountDomain) c.JSON(http.StatusBadRequest, gin.H{"error": fmt.Sprintf("accountDomain %s does not belong to this instance", accountDomain)}) return -- cgit v1.2.3