Browse Source

Solves the lynx lack of 404 issue

pull/196/head
sloum 11 months ago
parent
commit
bafa5a0739
  1. 2
      http/http_render.go

2
http/http_render.go

@ -33,7 +33,7 @@ func Visit(webmode, url string, width int) (Page, error) {
return Page{}, fmt.Errorf("Invalid webmode setting")
}
c, err := exec.Command(webmode, "-dump", w, fmt.Sprintf("%d", width), url).Output()
if err != nil {
if err != nil && c == nil {
return Page{}, err
}
return parseLinks(string(c)), nil

Loading…
Cancel
Save