This commit is contained in:
deepzz0
2016-10-12 00:29:56 +08:00
parent f3dfe46e7f
commit c24fa8bb22
6 changed files with 38 additions and 27 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
@@ -36,5 +35,7 @@ func (f *Superfeedr) PingFunc(urls ...string) {
logd.Error(err)
return
}
fmt.Println(string(data), res.StatusCode)
if res.StatusCode != 200 {
logd.Error(string(data))
}
}