fix: url.ParseRequestURI before http.Get

Signed-off-by: seipan <yamasakipann0218@gmail.com>
This commit is contained in:
seipan
2025-08-21 17:17:56 +09:00
parent 11f9435b50
commit 2a79ea148d
2 changed files with 17 additions and 1 deletions

View File

@@ -311,7 +311,11 @@ func (fl *FileLoader) httpClientGetContent(path string) ([]byte, error) {
} else {
hc = &http.Client{}
}
resp, err := hc.Get(path)
parsedURL, err := url.ParseRequestURI(path)
if err != nil {
return nil, errors.Wrap(err)
}
resp, err := hc.Get(parsedURL.String())
if err != nil {
return nil, errors.Wrap(err)
}