~rafael/gembro

3e9ae127ff2ba98f05993f672f76825566a181b7 — RafaĆ«l L. Bekkema 3 years ago 9208f18
Fix redirect history
1 files changed, 1 insertions(+), 1 deletions(-)

M tab.go
M tab.go => tab.go +1 -1
@@ 282,7 282,7 @@ func (tab Tab) handleResponse(resp ServerResponse) (Tab, tea.Cmd) {
			if resp.level > 5 {
				return tab.showMessage("Too many redirects. Welcome to the Web from Hell.", "", messagePlain, false)
			}
			return tab.loadURL(resp.Header.Meta, false, resp.level+1, false)
			return tab.loadURL(resp.Header.Meta, true, resp.level+1, false)
		case 4, 5, 6:
			return tab.showMessage(fmt.Sprintf("Error: %s", resp.Header.Meta), "", messagePlain, false)
		case 2: