Skip to content

Commit 0903f4c

Browse files
committed
minor comment change
1 parent bb872c6 commit 0903f4c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/net/http/server.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,7 @@ func checkWriteHeaderCode(code int) {
10841084
// Issue 22880: require valid WriteHeader status codes.
10851085
// For now we only enforce that it's three digits.
10861086
// In the future we might block things over 599 (600 and above aren't defined
1087-
// at https://httpwg.org/specs/rfc7231.html#status.codes)
1088-
// and we might block under 200 (once we have more mature 1xx support).
1087+
// at https://httpwg.org/specs/rfc7231.html#status.codes).
10891088
// But for now any three digits.
10901089
//
10911090
// We used to send "HTTP/1.1 000 0" on the wire in responses but there's
@@ -1129,7 +1128,7 @@ func (w *response) WriteHeader(code int) {
11291128
}
11301129
checkWriteHeaderCode(code)
11311130

1132-
// Handle provisional headers, except 100 (continue) which is handled automatically
1131+
// Handle informational headers, except 100 (Continue) which is handled automatically
11331132
if code > 100 && code < 200 {
11341133
writeStatusLine(w.conn.bufw, w.req.ProtoAtLeast(1, 1), code, w.statusBuf[:])
11351134
if code == 103 {

0 commit comments

Comments
 (0)