Skip to content

Ignore responses from http.Head() #78

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().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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