fix(mbuild): strip leading slashes from urls

This commit is contained in:
Cristi Cobzarenco
2017-08-23 11:48:38 +01:00
committed by Sebastian Thiel
parent a630af5830
commit f835835100

View File

@@ -584,7 +584,7 @@ match result {
else if \
% endif
protocol == "${mp.protocol}" {
(self.hub._root_url.clone() + "${mp.path}", "${upload_type_map.get(mp.protocol, mp.protocol)}")
(self.hub._root_url.clone() + "${mp.path.lstrip('/')}", "${upload_type_map.get(mp.protocol, mp.protocol)}")
} \
% endfor
else {