-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
resources.GetRemote HEAD method errors with unexpected EOF #10604
Comments
cc: @vanbroup |
A quick code scan, we should check if the response body is https://github.com/gohugoio/hugo/blob/master/resources/resource_factories/create/remote.go#L138 should check if I can create a PR to fix and test this next week. |
I'm checking this now and in @jmooring 's test case the body is not nil, |
OK, the Mozilla docs are useful here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD So, the correct way to handle this is to just ignore the body when the method is HEAD. I will create a pull request. |
... but that said, I don't see the value of a |
🥳 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Reference: https://discourse.gohugo.io/t/42272/3
When I do this:
I get:
But the response is captured and cached in:
/tmp/hugo_cache/my-project/filecache/getresource/6247740232174893946
The text was updated successfully, but these errors were encountered: