Skip to content

Ignore responses from http.Head() #78

@Jille

Description

@Jille

HTTP HEAD calls by definition don't have a response body.

The documentation on https://pkg.go.dev/net/http for each of Client.Do, Client.Get, Client.Post and Client.PostForm states that the caller must close the response body. However, this is not mentioned for Head calls.

Similar to http.Head() we should also ignore http.Client.Head().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions