We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I noted when a HEAD request is performed for a 404 URL, an unexpected error occurs.
https://runkit.com/kikobeats/5f09864696e7a6001baff6a7
const got = require('got') const pReflect = require('p-reflect') const result = await pReflect(got.head('https://www.sachadrake.com/images/assetimages/social_media_default.jpg')) console.log(result)
If the same code is performed using GET instead of HEAD, got returns the error:
got
HTTPError: Response code 404 (Not Found)
and that should be the expected behavior for the HEAD as well.
Tested the bug thing is happening at got@11.5.0 and any got@11x version.
got@11.5.0
got@11x
The text was updated successfully, but these errors were encountered:
I'm actually getting RequestError: Parse Error: Expected HTTP/ and if I open the URL it says 404.
RequestError: Parse Error: Expected HTTP/
Sorry, something went wrong.
ah you mean actually that error
2d96679
No branches or pull requests
Hello,
I noted when a HEAD request is performed for a 404 URL, an unexpected error occurs.
Actual behavior
https://runkit.com/kikobeats/5f09864696e7a6001baff6a7
Expected behavior
If the same code is performed using GET instead of HEAD,
got
returns the error:and that should be the expected behavior for the HEAD as well.
Details
Tested the bug thing is happening at
got@11.5.0
and anygot@11x
version.The text was updated successfully, but these errors were encountered: