Skip to content

Commit 1f811a1

Browse files
committed
remove special handling for WriteHeader(100)
1 parent 782fc6a commit 1f811a1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

http2/server.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,13 +2672,6 @@ func (rws *responseWriterState) writeHeader(code int) {
26722672

26732673
// Handle informational headers, except 100 (Continue) which is handled automatically
26742674
if code >= 100 && code < 200 {
2675-
if code == 100 && rws.body.needsContinue {
2676-
rws.body.needsContinue = false
2677-
rws.conn.write100ContinueHeaders(rws.body.stream)
2678-
2679-
return
2680-
}
2681-
26822675
// Per RFC 8297 we must not clear the current header map
26832676
h := rws.handlerHeader
26842677

0 commit comments

Comments
 (0)