From 0c96993cc0c17ba7aab05458445a8a572b0395ae Mon Sep 17 00:00:00 2001 From: kyteinsky Date: Tue, 22 Feb 2022 17:33:22 +0000 Subject: [PATCH] fix: parsing of protocol correctly (#2088) Co-authored-by: Liyas Thomas Co-authored-by: Andrew Bastin Co-authored-by: liyasthomas Co-authored-by: Rishabh Agarwal <45998880+RishabhAgarwal-2001@users.noreply.github.com> --- .../components/http/ImportCurl.vue | 68 +- .../helpers/curl/contentParser.ts | 274 +++++++ .../hoppscotch-app/helpers/curl/curlparser.ts | 666 ++++++++++++++++++ packages/hoppscotch-app/helpers/curl/index.ts | 29 + packages/hoppscotch-app/helpers/curlparser.ts | 264 ------- .../helpers/functional/debug.ts | 13 + .../hoppscotch-app/helpers/functional/json.ts | 9 + 7 files changed, 994 insertions(+), 329 deletions(-) create mode 100644 packages/hoppscotch-app/helpers/curl/contentParser.ts create mode 100644 packages/hoppscotch-app/helpers/curl/curlparser.ts create mode 100644 packages/hoppscotch-app/helpers/curl/index.ts delete mode 100644 packages/hoppscotch-app/helpers/curlparser.ts create mode 100644 packages/hoppscotch-app/helpers/functional/json.ts diff --git a/packages/hoppscotch-app/components/http/ImportCurl.vue b/packages/hoppscotch-app/components/http/ImportCurl.vue index c2b1d1dd9..07eee449f 100644 --- a/packages/hoppscotch-app/components/http/ImportCurl.vue +++ b/packages/hoppscotch-app/components/http/ImportCurl.vue @@ -34,15 +34,10 @@