1
0
Fork 0
mirror of https://github.com/matrix-org/dendrite.git synced 2025-03-28 04:24:28 -05:00

Comment on why we ignore the key ID argument for local keys

This commit is contained in:
Mark Haines 2017-05-25 12:27:06 +01:00
parent 8ea34f7fc6
commit c7c97af3da

View file

@ -36,6 +36,10 @@ func Setup(servMux *http.ServeMux, cfg config.FederationAPI) {
return readers.LocalKeys(req, cfg)
})
// Ignore the {keyID} argument as we only have a single server key so we always
// return that key.
// Even if we had more than one server key, we would probably still ignore the
// {keyID} argument and always return a response containing all of the keys.
v2keysmux.Handle("/server/{keyID}", localKeys)
v2keysmux.Handle("/server/", localKeys)