Skip to content

assume HTTP/1.1 for the zero value of Request ProtoMajor/ProtoMinor? #2004

@bradfitz

Description

@bradfitz
Right now, http.Request.ProtoAtLeast(1, 1) returns false if ProtoMajor and ProtoMinor
are unset.

In embracing the zero value, could/should we special case 0,0 to mean 1,1?  Users could
still set 0,9 if they wanted (HTTP/0.9 was the first protocol version).

I wasted some time debugging an issue with this today.

Russ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions