[fix] add redirect toggle command - fixes #121

pull/124/head
Adam Tauber 5 years ago
parent 50647fdd12
commit fe0a5e9810

@ -113,6 +113,12 @@ var COMMANDS map[string]func(string, *App) CommandFunc = map[string]func(string,
return nil
}
},
"redirectRestriction": func(_ string, a *App) CommandFunc {
return func(g *gocui.Gui, _ *gocui.View) error {
a.config.General.FollowRedirects = !a.config.General.FollowRedirects
return nil
}
},
}
func scrollView(v *gocui.View, dy int) error {

@ -74,7 +74,7 @@ var DefaultKeys = map[string]map[string]string{
"F7": "focus search",
"F8": "focus response-headers",
"F9": "focus response-body",
"F12": "redirects restriction mode",
"F12": "redirectRestriction",
},
"url": {
"Enter": "submit",

Loading…
Cancel
Save