From 55742ccdd8e98744cd13e1e81951e3cfbe497c01 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 2 Jul 2024 16:56:09 -0600 Subject: [PATCH] Maybe remove the dev code --- matrix/xmatrix.go | 1 - 1 file changed, 1 deletion(-) diff --git a/matrix/xmatrix.go b/matrix/xmatrix.go index 49f9342a..6b9e890e 100644 --- a/matrix/xmatrix.go +++ b/matrix/xmatrix.go @@ -15,7 +15,6 @@ var ErrNoXMatrixAuth = errors.New("no X-Matrix auth headers") var ErrWrongDestination = errors.New("wrong destination") func ValidateXMatrixAuth(request *http.Request, expectNoContent bool) (string, error) { - return "localhost", nil if !expectNoContent { panic("development error: X-Matrix auth validation can only be done with an empty body for now") }