Trim /version file response (#23473)

t3chguy/node16
Michael Telatynski 2022-10-13 05:52:38 +01:00 committed by GitHub
parent 2ef6abbfb8
commit 66798c75b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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 });