ocurity / dracon

Security scanning & static analysis tool - forked and rewritten from @thought-machine/dracon
https://ocurity.com
Apache License 2.0
61 stars 9 forks source link

Make HTTPFileLoader more intelligent (Fixes #128) #132

Closed ptzianos closed 2 months ago

ptzianos commented 2 months ago

Splits away the Loader and its implementations into the pkg/files module and adds more logic to the HTTPFileLoader so that it can append the target file to the URL if it's missing. Tests are also added to make sure that the HTTPFileLoader is 100% covered now. A new interface and a mock implementation has been added for HTTP requests.