l3montree-dev / devguard

DevGuard Backend - Manage your CVEs seamlessly, Integrate your Vulnerability Scanners, Security Framework Documentation made easy, Compliance to security Frameworks - OWASP Incubating Project
https://devguard.org
Other
41 stars 5 forks source link

Refine apiUrl to Prevent Issues with HTTP Requests #191

Closed Refoo0 closed 1 day ago

Refoo0 commented 3 weeks ago

Check if the apiUrl ends with a "/"; if it does, remove it from the URL main: 467 req, err := http.NewRequestWithContext(ctx, "POST", apiUrl+"/api/v1/scan", file)