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

POST request without headers fails #32

Closed
shytikov opened this issue Aug 23, 2016 · 3 comments
Closed

POST request without headers fails #32

shytikov opened this issue Aug 23, 2016 · 3 comments
Labels

Comments

@shytikov
Copy link

  • VSCode Version: 1.4.0
  • OS Version: Windows 10
  • REST Client Version: 0.7.2

Steps to Reproduce:

  1. Create POST request with body but no headers;
  2. Ensure that there is an empty line between request URL and body;
  3. Execute request;
  4. VSCode will show error message Header must be in 'header name: header value' format, please also make sure there is a blank line between headers and body;
  5. Add any valid header;
  6. Ensure that there is an empty line between request URL and body;
  7. Execute request;
  8. Request succeeds.

As I mention, there is a workaround — create dummy (still valid) header and execute request. But behavior is clearly incorrect and error message is misleading.

@Huachao Huachao added the bug label Aug 23, 2016
@Huachao
Copy link
Owner

Huachao commented Aug 23, 2016

@shytikov nice catch, I will fix it ASAP and publish a new version

Huachao added a commit that referenced this issue Aug 23, 2016
@Huachao Huachao closed this as completed Aug 23, 2016
@Huachao
Copy link
Owner

Huachao commented Aug 23, 2016

@shytikov it has been fixed and you can try the latest version 0.7.3. 😃

@shytikov
Copy link
Author

Wow, that was fast!.. I will finish my API debugging (doing it with the help of your extension), and will update version!

Thank you!

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

2 participants