From f2437be52b251c04c03782c562627ec572609dbd Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Fri, 28 Apr 2017 14:45:18 +0200 Subject: [PATCH] mediaapi/routing: Correct comment on origin of duplicated code --- .../matrix-org/dendrite/mediaapi/routing/routing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go b/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go index d79f59955..4b41920e6 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go @@ -41,8 +41,8 @@ type downloadRequestHandler struct { } func (handler downloadRequestHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { - // NOTE: The code below is from util.Protect and respond but this is the only - // API that needs a different form of it to be able to pass the + // NOTE: The code below is from util.MakeJSONAPI and respond but this is the + // only API that needs a different form of it to be able to pass the // http.ResponseWriter to the handler reqID := util.RandomString(12) // Set a Logger and request ID on the context