mirror of https://github.com/linkerd/linkerd2.git
concatenate additional url paths to protohttp.TapReqToUrl (#4151)
* concatenate additional url paths to protohttp.TapReqToUrl Signed-off-by: Charles Pretzer <charles@buoyant.io> * fix formatting
This commit is contained in:
parent
80935f0ba7
commit
0b8272bdf5
|
@ -3,6 +3,7 @@ package tap
|
|||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
@ -37,7 +38,7 @@ func Reader(k8sAPI *k8s.KubernetesAPI, req *pb.TapByResourceRequest, timeout tim
|
|||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
url.Path = protohttp.TapReqToURL(req)
|
||||
url.Path = fmt.Sprintf("%s%s", url.Path, protohttp.TapReqToURL(req))
|
||||
|
||||
httpReq, err := http.NewRequest(
|
||||
http.MethodPost,
|
||||
|
|
Loading…
Reference in New Issue