Trim /version file response (#23473)
parent
2ef6abbfb8
commit
66798c75b5
|
@ -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 });
|
||||
|
|
Loading…
Reference in New Issue