mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Rename context.Query to context.Form (#16562)
This commit is contained in:
@@ -78,8 +78,8 @@ func ListDeployKeys(ctx *context.APIContext) {
|
||||
var keys []*models.DeployKey
|
||||
var err error
|
||||
|
||||
fingerprint := ctx.Query("fingerprint")
|
||||
keyID := ctx.QueryInt64("key_id")
|
||||
fingerprint := ctx.Form("fingerprint")
|
||||
keyID := ctx.FormInt64("key_id")
|
||||
if fingerprint != "" || keyID != 0 {
|
||||
keys, err = models.SearchDeployKeys(ctx.Repo.Repository.ID, keyID, fingerprint)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user