From ade55099ee78c363491f6c77d15e09c1037be5a8 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 15 Jun 2020 16:11:10 +0100 Subject: [PATCH] Fix comments --- federationapi/federationapi_test.go | 2 -- internal/httputil/httpapi.go | 1 - 2 files changed, 3 deletions(-) diff --git a/federationapi/federationapi_test.go b/federationapi/federationapi_test.go index a1cd636c0..b381a6c31 100644 --- a/federationapi/federationapi_test.go +++ b/federationapi/federationapi_test.go @@ -15,8 +15,6 @@ import ( "github.com/matrix-org/gomatrixserverlib" ) -// matrix://localhost:8802/_matrix/federation/v2/invite/%21bOuDVHU76mL0twoV:localhost:8800/$brf2KOWwYhnZxgr%2F2M%2F%2FLWZyLORwA+neIDbS83y8XSU - // Tests that event IDs with '/' in them (escaped as %2F) are correctly passed to the right handler and don't 404. // Relevant for v3 rooms and a cause of flakey sytests as the IDs are randomly generated. func TestRoomsV3URLEscapeDoNot404(t *testing.T) { diff --git a/internal/httputil/httpapi.go b/internal/httputil/httpapi.go index b03b8e84a..a35a10d68 100644 --- a/internal/httputil/httpapi.go +++ b/internal/httputil/httpapi.go @@ -234,7 +234,6 @@ func (f *FederationWakeups) Wakeup(ctx context.Context, origin gomatrixserverlib } // SetupHTTPAPI registers an HTTP API mux under /api and sets up a metrics listener -// Returns the handler that should be ListenAndServe'd on. func SetupHTTPAPI(servMux, publicApiMux, internalApiMux *mux.Router, cfg *config.Dendrite, enableHTTPAPIs bool) { if cfg.Metrics.Enabled { servMux.Handle("/metrics", WrapHandlerInBasicAuth(promhttp.Handler(), cfg.Metrics.BasicAuth))