mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-02-25 14:03:09 -06:00
mediaapi/routing: Correct comment on origin of duplicated code
This commit is contained in:
parent
0a24e406af
commit
f2437be52b
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue