-
Notifications
You must be signed in to change notification settings - Fork 35
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
Use a HEAD instead of GET #180
Conversation
1dcdaf3
to
b79d7a4
Compare
e503e55
to
38eadb9
Compare
@votdev Please wrap up this PR. |
Even if Go only downloads the body for a GET request when the body-reader is used; it is still wrong and a HEAD request should be used instead. Additionaly some code polishing is done. Signed-off-by: Volker Theile <[email protected]>
38eadb9
to
c7c1acb
Compare
@mergify backport v1.6.x v1.5.x |
✅ Backports have been created
|
TestcaseIt can not be tested whether a Go to the Name: Press OK. In the list view you can click on the name The image size should be ~ 118MiB. |
... to request only the headers of the resource without the body.
Which issue(s) this PR fixes:
Issue #7892
What this PR does / why we need it:
Use a HEAD instead of a GET request because in that situation it is the correct method that should be used. The
GetSizeFromURL
function is processing only theContent-Length
header and no data from the body.Special notes for your reviewer:
Additional documentation or context