diff --git a/go.mod b/go.mod index d0022af3d..505d5e4a9 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module github.com/yomorun/yomo go 1.14 require ( - github.com/10cella/yomo-json-codec v0.2.5 + github.com/10cella/yomo-json-codec v0.2.6 github.com/lucas-clemente/quic-go v0.17.1 ) diff --git a/go.sum b/go.sum index 39716f3e8..206a37282 100644 --- a/go.sum +++ b/go.sum @@ -23,6 +23,8 @@ github.com/10cella/yomo-json-codec v0.2.4 h1:bdOInT1MnBhXDsGBHx/fYn0CiXzKxrm5/kF github.com/10cella/yomo-json-codec v0.2.4/go.mod h1:j4rl6bth7Bb6F8UC0SPN2XxlGGUsHGWO8LnrH5Q8RzI= github.com/10cella/yomo-json-codec v0.2.5 h1:XTWWFVkQENaLLBTxBdXyG61UneA8SQF/YdlnyHptV/o= github.com/10cella/yomo-json-codec v0.2.5/go.mod h1:j4rl6bth7Bb6F8UC0SPN2XxlGGUsHGWO8LnrH5Q8RzI= +github.com/10cella/yomo-json-codec v0.2.6 h1:LjJHlYtQ9nma84/Tbo56lessv5ojHKP3nGTuj6v4Z08= +github.com/10cella/yomo-json-codec v0.2.6/go.mod h1:j4rl6bth7Bb6F8UC0SPN2XxlGGUsHGWO8LnrH5Q8RzI= github.com/10cella/yomo-txtkv-codec v1.0.5 h1:rVdtBcsff3RG3BEq7AHq2WvNiGDF6IEKlTiplypfX+c= github.com/10cella/yomo-txtkv-codec v1.0.5/go.mod h1:nBfcD3qVq6kkSRHOgSUxK1+gMRoXI0obLF+b1eiyCtM= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= diff --git a/pkg/util/quic.go b/pkg/util/quic.go index da5e53710..22f036429 100644 --- a/pkg/util/quic.go +++ b/pkg/util/quic.go @@ -79,6 +79,9 @@ func (w YomoFrameworkStreamWriter) Write(b []byte) (c int, e error) { } logger.Debugf("Plugin.Handle result: %s", result) //debug: + if result == nil { + continue + } num, err = w.Codec.Write(w.Writer, result, w.Plugin.Mold()) if err != nil {