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
Head type requests not working #2280
Comments
This is pretty old, but still an issue. Will queue up fixing after #2295 is merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Cannot test HEAD type request examples because it causes an error in the underlying requests lib.
But, there is no request body in the API docs that I'm using.
I think Dredd provides an empty Buffer for the call here https://github.com/apiaryio/dredd/blob/master/packages/dredd/lib/performRequest.js#L72 that's causing the problem. Instead it should be considered that the request is HEAD or not.
To Reproduce
Steps to reproduce the behavior. How do you call the dredd command? Which command line options?
Command:
dredd ./head-test.apib https://1234.mock.pstmn.io
API docs:
Output:
Expected behavior
Dredd should send out a HEAD type request from the example given in docs. No error is thrown.
What is in your
dredd.yml
?empty
What's your
dredd --version
output?Does
dredd --loglevel=debug
uncover something?If you run Dredd with debugging output, do you see any interesting information relevant to the bug?
Can you send us failing test in a Pull Request?
We'll gladly help you to contribute; answering yes raises the chances the issue gets fixed.
The text was updated successfully, but these errors were encountered: