fzdwx commented on code in PR #188:
URL: https://github.com/apache/skywalking-go/pull/188#discussion_r1675879962
##########
plugins/mux/serve_interceptor.go:
##########
@@ -58,8 +61,23 @@ func (n *ServeHTTPInterceptor) AfterInvoke(invocation
operator.Invocation, resul
return nil
}
+func newWriterWrapper(rw interface{}) (*writerWrapper, error) {
+ writer := rw.(http.ResponseWriter)
+ hijacker, ok := rw.(http.Hijacker)
+ if !ok {
+ return nil, fmt.Errorf("http.ResponseWriter does not implement
http.Hijacker")
Review Comment:
I tried to add some code, which introduced the `bufio` and `net` packages,
and then the following error occurred when building. How to solve it?
```
$WORK/b289/skywalking_enhance_mux_serve_interceptor.go:21:2: could not
import bufio (open : no such file or directory)
$WORK/b289/skywalking_enhance_mux_serve_interceptor.go:23:2: could not
import net (open : no such file or directory)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]