Skip to content

Commit

Permalink
set params
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Nov 20, 2023
1 parent f6d4285 commit 623f0d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/engine/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,10 @@ func scriptJSFileRegexParser(resp *navigation.Response) (navigationRequests []*n
}

if strings.Contains(string(resp.Body), "//# sourceMappingURL=") {
temp := urlutil.URL{URL: resp.Resp.Request.URL}
reqUrl := resp.Resp.Request.URL
params := urlutil.NewOrderedParams()
params.Decode(reqUrl.RawQuery)
temp := &urlutil.URL{URL: reqUrl, Params: params}
cloned := temp.Clone()
// ignore the query params if url contains any
cloned.RawQuery = ""
Expand Down

0 comments on commit 623f0d3

Please sign in to comment.