Absolute path file:// URLs broken on Windows
Closed this issue · 1 comments
axw commented
6089779 broke file://
URLs on Windows, where the path begins with something like C:/
e.g. for file://C:/foo.txt
, url.Parse will place "C:" in the Host field, and "/foo.txt" in the Path field.
axw commented
Never mind, I realised I was holding it wrong. Just need another '/' at the front (e.g. file:///C:/foo.txt
)