Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable substitution fails when there is spaces after/before the brackets #104

Closed
pcastellazzi opened this issue Jun 14, 2017 · 1 comment

Comments

@pcastellazzi
Copy link

  • VSCode Version: 1.13.0
  • OS Version: macOS 10.12.5
  • REST Client Version: 0.14.4

Steps to Reproduce:

  1. Create a file named test.http

  2. Add some variables with this snippet to your settings

"rest-client.environmentVariables": {
        "default": {
            "app_server": "https://www.google.com",
            "app_token": "12345678"
        }
    }
}
  1. Select the environment we just created with Cmd+Option+E => default

  2. Write GET {{ app_server }}/#q=hello+world.

  3. Run the query with Send request

I expected to get the result pane with a 200 ok HTTP response and the content. Instead i got this error message: Invalid URI "%7B%7B%20app_server%20%7D%7D/#q=hello+world"

@Huachao
Copy link
Owner

Huachao commented Jun 14, 2017

@pcastellazzi nice catch, I have implemented this in version 0.14.5, and you can try it now 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants