From 66798c75b5f60747c4632eb46d433489a5ccdaa3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Oct 2022 05:52:38 +0100 Subject: [PATCH] Trim /version file response (#23473) --- src/vector/platform/WebPlatform.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/platform/WebPlatform.ts b/src/vector/platform/WebPlatform.ts index 2800f27a4..578c0163c 100644 --- a/src/vector/platform/WebPlatform.ts +++ b/src/vector/platform/WebPlatform.ts @@ -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 });