mirror of https://github.com/status-im/migrate.git
use URL.Opaque when available
This commit is contained in:
parent
e8b8975ec3
commit
01291f7cb5
|
@ -30,7 +30,10 @@ func (f *File) Open(url string) (source.Driver, error) {
|
||||||
|
|
||||||
// concat host and path to restore full path
|
// concat host and path to restore full path
|
||||||
// host might be `.`
|
// host might be `.`
|
||||||
p := u.Host + u.Path
|
p := u.Opaque
|
||||||
|
if len(p) == 0 {
|
||||||
|
p = u.Host + u.Path
|
||||||
|
}
|
||||||
|
|
||||||
if len(p) == 0 {
|
if len(p) == 0 {
|
||||||
// default to current directory if no path
|
// default to current directory if no path
|
||||||
|
|
Loading…
Reference in New Issue