Trim /version file response (#23473)

This commit is contained in:
Michael Telatynski
2022-10-13 05:52:38 +01:00
committed by GitHub
parent 2ef6abbfb8
commit 66798c75b5

View File

@@ -93,7 +93,8 @@ export default class WebPlatform extends VectorBasePlatform {
});
if (res.ok) {
return getNormalizedAppVersion(await res.text());
const text = await res.text();
return getNormalizedAppVersion(text.trim());
}
return Promise.reject({ status: res.status });