mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
feat: added license parser for dpkg (#2381)
Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
4
rpc/cache/service.twirp.go
vendored
4
rpc/cache/service.twirp.go
vendored
@@ -1469,8 +1469,8 @@ func writeError(ctx context.Context, resp http.ResponseWriter, err error, hooks
|
||||
callResponseSent(ctx, hooks)
|
||||
}
|
||||
|
||||
// sanitizeBaseURL parses the baseURL, and adds the "http" scheme if needed.
|
||||
// If the URL is unparsable, the baseURL is returned unchanged.
|
||||
// sanitizeBaseURL parses the the baseURL, and adds the "http" scheme if needed.
|
||||
// If the URL is unparsable, the baseURL is returned unchaged.
|
||||
func sanitizeBaseURL(baseURL string) string {
|
||||
u, err := url.Parse(baseURL)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user