Skip to content

Commit

Permalink
fix showall bug
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Sto committed Oct 26, 2018
1 parent a499dab commit 5110fd5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions librecursebuster/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,11 @@ func (gState *State) testURL(method string, urlString string, client *http.Clien
}

gState.wg.Add(1)
gState.Chans.confirmedChan <- SpiderPage{URL: urlString, Result: headResp, Reference: headResp.Request.URL}

if headResp == nil {
gState.Chans.confirmedChan <- SpiderPage{URL: urlString, Result: headResp, Reference: nil}
} else {
gState.Chans.confirmedChan <- SpiderPage{URL: urlString, Result: headResp, Reference: headResp.Request.URL}
}
if !gState.Cfg.NoSpider && good && !gState.Cfg.NoRecursion {
urls, err := getUrls(content)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/fatih/color"
)

const version = "1.5.14"
const version = "1.5.15"

func main() {
if runtime.GOOS == "windows" { //lol goos
Expand Down
Binary file removed output.txt
Binary file not shown.

0 comments on commit 5110fd5

Please sign in to comment.