Skip to content

Empty parameters are not included in curl and HTTP request snippets #200

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

Closed
wilkinsona opened this issue Feb 12, 2016 · 0 comments
Closed
Labels
Milestone

Comments

@wilkinsona
Copy link
Member

It's possible for a request to contain a parameter with no value. For example, http://localhost/test?foo contains the parameter foo with no value. You can also post a parameter with no value, for example curl -X POST http://localhost:8080/ -d 'foo='.

Neither the curl request snippet nor the HTTP request snippet handle valueless parameters correctly. In both cases the parameters are omitted entirely.

@wilkinsona wilkinsona added the type: bug A bug label Feb 12, 2016
@wilkinsona wilkinsona added this to the 1.0.2.RELEASE milestone Feb 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant