github unkn0wn-root/resterm v0.18.4

latest releases: v0.34.2, v0.34.1, v0.33.4...
3 months ago

What's Fixed

  • Templated base URLs no longer break when you patch or merge query params. If a URL like {{base_url}}/anything?mode=debug was passed through query.merge or @apply, the {{...}} was percent encoded and the request failed with "unsupported protocol scheme". We now protect templates during parsing, so they survive parsing while the rest of the query is still encoded normally.

Example in rts file or directly in .http file:
query.merge("{{base_url}}/anything?mode=debug", { pre: "1" })

Before:
=> %7B%7Bbase_url%7D%7D/anything?mode=debug&pre=1 (fails)

After:
=> {{base_url}}/anything?mode=debug&pre=1

Don't miss a new resterm release

NewReleases is sending notifications on new releases.