good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit 352c34f5 authored by a's avatar a
Browse files

add pipereader special case

parent bb5192aa
No related branches found
No related tags found
No related merge requests found
Pipeline #32895 passed with stage
in 5 minutes
......@@ -324,6 +324,12 @@ func (c *callResponder) send(ctx context.Context, env *callEnv) (err error) {
} else {
enc.Raw(cast)
}
case *io.PipeReader:
_, err := io.Copy(w, cast)
if err != nil {
return err
}
cast.Close()
case func(e io.Writer) error:
err = cast(w)
case func(e *jx.Writer) error:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment