Skip to content

Single line requests on the last line of a file get incorrect body results #198

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
not-napoleon opened this issue Jun 5, 2023 · 0 comments · Fixed by #300
Closed

Single line requests on the last line of a file get incorrect body results #198

not-napoleon opened this issue Jun 5, 2023 · 0 comments · Fixed by #300

Comments

@not-napoleon
Copy link

This is easy to work around, but seemed worth reporting anyway. If a request is on the last line (or only line) of a file, it seems to get included in the body as --data-raw:

calling RestNvimPreview on

GET https://reqres.in/api/users?page=5

Results in:

curl -sSL --compressed -X 'GET' --data-raw 'GET https://reqres.in/api/users?page=5' 'https://reqres.in/api/users?page=5'

However, calling it on (note the trailing blank line)

GET https://reqres.in/api/users?page=5

Results in:

curl -sSL --compressed -X 'GET' --data-raw '' 'https://reqres.in/api/users?page=5'
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

Successfully merging a pull request may close this issue.

1 participant