Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: trim leading and trailing whitespaces in URL - fixed #2046

liyasthomas724e1e4c8f8e
diff --git a/packages/hoppscotch-app/assets/scss/styles.scss b/packages/hoppscotch-app/assets/scss/styles.scss
index c71d63167..439da74f6 100644
--- a/packages/hoppscotch-app/assets/scss/styles.scss
+++ b/packages/hoppscotch-app/assets/scss/styles.scss
@@ -246,7 +246,7 @@ button {
@apply transform;
@apply origin-top-left;
@apply scale-75;
- @apply -translate-y-5;
+ @apply -translate-y-4;
@apply translate-x-1;
}
diff --git a/packages/hoppscotch-app/helpers/network.ts b/packages/hoppscotch-app/helpers/network.ts
index 9ec838e74..74fe856ac 100644
--- a/packages/hoppscotch-app/helpers/network.ts
+++ b/packages/hoppscotch-app/helpers/network.ts
@@ -147,7 +147,7 @@ export function createRESTNetworkRequestStream(
TE.bind("res", ({ req, headers, params }) =>
runAppropriateStrategy({
method: req.method as any,
- url: req.effectiveFinalURL,
+ url: req.effectiveFinalURL.trim(),
headers,
params,
data: req.effectiveFinalBody,