Skip to content

Commit

Permalink
Maybe remove the dev code
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jul 2, 2024
1 parent 2e92cac commit 55742cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion matrix/xmatrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 55742cc

Please sign in to comment.