mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 12:44:25 +00:00
Fixes url escaping (#24)
This commit is contained in:
@@ -748,7 +748,7 @@
|
||||
"manufacturerCode": 4687,
|
||||
"imageType": 0,
|
||||
"modelId": "GL-S-007P",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Gledopto/GL-S-007P_V15_A1_OTAV5_20210201_90%.ota",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Gledopto/GL-S-007P_V15_A1_OTAV5_20210201_90%25.ota",
|
||||
"path": "images/Gledopto/GL-S-007P_V15_A1_OTAV5_20210201_90%.ota"
|
||||
}
|
||||
]
|
||||
@@ -80,7 +80,7 @@ const main = async () => {
|
||||
entry.url = filenameOrURL;
|
||||
} else {
|
||||
const destinationPosix = destination.replace(/\\/g, '/');
|
||||
entry.url = `${baseURL}/${destinationPosix}`;
|
||||
entry.url = `${baseURL}/${escape(destinationPosix)}`;
|
||||
entry.path = destinationPosix;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user