hoppscotch / hoppscotch-extension

🧩 Browser extensions to provide more capabilities to https://hoppscotch.io
https://hoppscotch.io
MIT License
254 stars 95 forks source link

fix: remove trailing ? from the url when no params are present #291

Closed amk-dev closed 5 months ago

amk-dev commented 6 months ago

Changes

  1. axios.params was always an object, whether we passed it from the FE or not. so added a .length check to make sure we've params present.
  2. cleaned up the url search params picking logic to use URL instead of UrlSearchParams