Skip to content

Commit c33edb7

Browse files
committed
minor comment change
1 parent 33505cb commit c33edb7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/net/http/server.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,7 @@ func checkWriteHeaderCode(code int) {
11071107
// Issue 22880: require valid WriteHeader status codes.
11081108
// For now we only enforce that it's three digits.
11091109
// In the future we might block things over 599 (600 and above aren't defined
1110-
// at https://httpwg.org/specs/rfc7231.html#status.codes)
1111-
// and we might block under 200 (once we have more mature 1xx support).
1110+
// at https://httpwg.org/specs/rfc7231.html#status.codes).
11121111
// But for now any three digits.
11131112
//
11141113
// We used to send "HTTP/1.1 000 0" on the wire in responses but there's
@@ -1152,7 +1151,7 @@ func (w *response) WriteHeader(code int) {
11521151
}
11531152
checkWriteHeaderCode(code)
11541153

1155-
// Handle provisional headers, except 100 (continue) which is handled automatically
1154+
// Handle informational headers, except 100 (Continue) which is handled automatically
11561155
if code > 100 && code < 200 {
11571156
writeStatusLine(w.conn.bufw, w.req.ProtoAtLeast(1, 1), code, w.statusBuf[:])
11581157
if code == 103 {

0 commit comments

Comments
 (0)