Skip to content

Commit 8219c02

Browse files
committed
minor comment change
1 parent 5b552d2 commit 8219c02

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
@@ -1104,8 +1104,7 @@ func checkWriteHeaderCode(code int) {
11041104
// Issue 22880: require valid WriteHeader status codes.
11051105
// For now we only enforce that it's three digits.
11061106
// In the future we might block things over 599 (600 and above aren't defined
1107-
// at https://httpwg.org/specs/rfc7231.html#status.codes)
1108-
// and we might block under 200 (once we have more mature 1xx support).
1107+
// at https://httpwg.org/specs/rfc7231.html#status.codes).
11091108
// But for now any three digits.
11101109
//
11111110
// We used to send "HTTP/1.1 000 0" on the wire in responses but there's
@@ -1149,7 +1148,7 @@ func (w *response) WriteHeader(code int) {
11491148
}
11501149
checkWriteHeaderCode(code)
11511150

1152-
// Handle provisional headers, except 100 (continue) which is handled automatically
1151+
// Handle informational headers, except 100 (Continue) which is handled automatically
11531152
if code > 100 && code < 200 {
11541153
writeStatusLine(w.conn.bufw, w.req.ProtoAtLeast(1, 1), code, w.statusBuf[:])
11551154
if code == 103 {

0 commit comments

Comments
 (0)