Skip to content

Commit f73d0ff

Browse files
committed
remove special handling for WriteHeader(100)
1 parent c7bb932 commit f73d0ff

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
@@ -2674,13 +2674,6 @@ func (rws *responseWriterState) writeHeader(code int) {
26742674

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

0 commit comments

Comments
 (0)