Skip to content

Commit

Permalink
Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsteele committed Mar 5, 2015
1 parent 034ff59 commit 3953e7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ func walker(path string, info os.FileInfo, err error) error {
if parts[1] == "" {
return nil
}

resp, err := http.Get(localURL + parts[1])
fname := strings.Replace(parts[1], "\\", "/", -1)
resp, err := http.Get(localURL + fname)

if err != nil {
log.Printf("Error getting %s from go http server: %s", parts[1], err.Error())
log.Printf("Error getting %s from go http server: %s", fname, err.Error())
return nil
}
if resp.StatusCode != 200 {
log.Printf("Non 200 status code from go for %s", parts[1])
log.Printf("Non 200 status code from go for %s", fname)
return nil
}

Expand Down

0 comments on commit 3953e7f

Please sign in to comment.