-
Notifications
You must be signed in to change notification settings - Fork 445
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
Ability to force newline at end of request body #292
Comments
@jimmcslim @michelemauro so in this case the content type header of request body should be Content-Type: application/x-ndjson according to ES bulk API doc , right ? |
Yes, that appears to be the case. |
@jimmcslim @michelemauro @esurijon I have fixed the issue that append a newline character to the end of the request body for |
@jimmcslim @michelemauro @esurijon you can try the latest version to verify |
The Elasticsearch Bulk API requires that the request body have a final newline character. However it seems that VS Code REST Client trims leading and trailing whitespace from the request body, which I agree is a reasonable thing to do.
However, without the final newline character in this case, Elasticsearch ignores the last record in the bulk update operation.
It would be good if there was a simple way to specify to VS Code REST Client that some whitespace is actually significant!
The text was updated successfully, but these errors were encountered: