Update messageSensitiveDataCleaner.go

This commit is contained in:
RamiBerm 2021-05-30 15:54:45 +03:00
parent 3497dc057b
commit 5473f11215

View File

@ -86,7 +86,7 @@ func filterJsonMap(jsonMap map[string] interface{}) {
}
}
// replaces sensitive query params in url string (http://service/api?userId=bob&password=123&type=login -> http://service/api?userId=[REDACTED]&password=[REDACTED]&type=login)
// receives string representing url, returns string url without sensitive query param values (http://service/api?userId=bob&password=123&type=login -> http://service/api?userId=[REDACTED]&password=[REDACTED]&type=login)
func filterUrl(originalUrl string) string {
parsedUrl, err := url.Parse(originalUrl)
if err != nil {