mediaapi/routing: Correct comment on origin of duplicated code

This commit is contained in:
Robert Swain 2017-04-28 14:45:18 +02:00
parent 0a24e406af
commit f2437be52b

View file

@ -41,8 +41,8 @@ type downloadRequestHandler struct {
} }
func (handler downloadRequestHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { 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 // NOTE: The code below is from util.MakeJSONAPI and respond but this is the
// API that needs a different form of it to be able to pass the // only API that needs a different form of it to be able to pass the
// http.ResponseWriter to the handler // http.ResponseWriter to the handler
reqID := util.RandomString(12) reqID := util.RandomString(12)
// Set a Logger and request ID on the context // Set a Logger and request ID on the context