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: postman import does not force the protocol if not specified, fixes #2208

Andrew Bastin01f46e51583e
diff --git a/packages/hoppscotch-app/helpers/import-export/import/postman.ts b/packages/hoppscotch-app/helpers/import-export/import/postman.ts
index 07e291787..058637734 100644
--- a/packages/hoppscotch-app/helpers/import-export/import/postman.ts
+++ b/packages/hoppscotch-app/helpers/import-export/import/postman.ts
@@ -262,7 +262,7 @@ const getHoppReqBody = (item: Item): HoppRESTReqBody => {
const getHoppReqURL = (item: Item): string =>
pipe(
- item.request.url.toString(true),
+ item.request.url.toString(false),
S.replace(/\?.+/g, ""),
replacePMVarTemplating
)