Skip to content

Commit

Permalink
fix upload URL to include existing path (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoah authored Feb 14, 2021
1 parent cb2513e commit 221988f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/agent/upstream/remote/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io/ioutil"
"net/http"
"net/url"
"path"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -111,7 +112,7 @@ func (u *Remote) uploadProfile(j *uploadJob) {
q.Set("spyName", j.spyName)
q.Set("sampleRate", strconv.Itoa(j.sampleRate))

urlObj.Path = "/ingest"
urlObj.Path = path.Join(urlObj.Path, "/ingest")
urlObj.RawQuery = q.Encode()
buf := j.t.Bytes()
log.Info("uploading at ", urlObj.String())
Expand Down

0 comments on commit 221988f

Please sign in to comment.