mirror of
https://github.com/muraenateam/muraena.git
synced 2026-01-22 18:14:07 +00:00
Update tracking.go
This commit is contained in:
parent
bee8be0134
commit
2319d27bf7
1 changed files with 1 additions and 2 deletions
|
|
@ -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, ""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue