77 "fmt"
88 "io"
99 "net/http"
10- neturl "net/url"
10+ "net/url"
1111 "os"
1212 "path"
1313 "path/filepath"
@@ -45,7 +45,7 @@ func Request(path string, cached bool) (*http.Response, error) {
4545 return last , nil
4646}
4747
48- func doProxyRequest (u * neturl .URL , subpath string , cached bool ) (* http.Response , error ) {
48+ func doProxyRequest (u * url .URL , subpath string , cached bool ) (* http.Response , error ) {
4949 switch u .Scheme {
5050 case "http" , "https" :
5151 return httpRequest (u , subpath , cached )
@@ -56,7 +56,7 @@ func doProxyRequest(u *neturl.URL, subpath string, cached bool) (*http.Response,
5656 }
5757}
5858
59- func httpRequest (u * neturl .URL , subpath string , cached bool ) (* http.Response , error ) {
59+ func httpRequest (u * url .URL , subpath string , cached bool ) (* http.Response , error ) {
6060 req , err := http .NewRequest (http .MethodGet , u .JoinPath (subpath ).String (), nil )
6161 if err != nil {
6262 return nil , err
@@ -68,7 +68,7 @@ func httpRequest(u *neturl.URL, subpath string, cached bool) (*http.Response, er
6868 return http .DefaultClient .Do (req )
6969}
7070
71- func fileRequest (u * neturl .URL , subpath string ) (* http.Response , error ) {
71+ func fileRequest (u * url .URL , subpath string ) (* http.Response , error ) {
7272 root := u .Path
7373 if filepath .VolumeName (root ) != "" {
7474 root , _ = strings .CutPrefix (root , "/" )
0 commit comments