Update tracking.go

This commit is contained in:
Ohpe 2024-11-12 16:27:12 +01:00
parent bee8be0134
commit 2319d27bf7
No known key found for this signature in database

View file

@ -316,9 +316,8 @@ func (module *Tracker) TrackRequest(request *http.Request) (t *Trace) {
re := regexp.MustCompile(pathRegex)
match := re.FindStringSubmatch(request.URL.Path)
module.Info("tracking path match: %v", match)
if len(match) > 0 {
// module.Info("tracking path match: %v", match)
t = module.makeTrace(match[0])
if t.IsValid() {
request.Header.Set(module.LandingHeader, strings.ReplaceAll(request.URL.Path, t.ID, ""))