Skip to content

net/http: HEAD responses should include the correct Content-Type #2886

Closed
@patrickmn

Description

@patrickmn
afa99ad294e7+ tip

Follow-up to https://golang.org/issue/2885 and
http://golang.org/cl/5633045

Currently, HEAD responses do not include Content-Type because the body is ignored. The
body should be sniffed to allow people to determine the type of a file without making a
full GET request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions