server.go
@@ -5,7 +5,6 @@ "fmt" "net" "strconv" "strings" "time" "github.com/long/test/esutil" @@ -107,6 +106,7 @@ jsonstring := esutil.PostAction(*sec, *Eurl, *Picurl) if jsonstring == nil { log.Log.Infoln("the data is nil,remoteArr:",conn.RemoteAddr()) conn.Write([]byte("\000")) return true } jsonstring = append(jsonstring, []byte("\000")...)