Skip to content

Commit

Permalink
remove special handling for WriteHeader(100)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 4, 2022
1 parent c7bb932 commit f73d0ff
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions http2/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2674,13 +2674,6 @@ func (rws *responseWriterState) writeHeader(code int) {

// Handle informational headers, except 100 (Continue) which is handled automatically
if code >= 100 && code < 200 {
if code == 100 && rws.body.needsContinue {
rws.body.needsContinue = false
rws.conn.write100ContinueHeaders(rws.body.stream)

return
}

// Per RFC 8297 we must not clear the current header map
h := rws.handlerHeader

Expand Down

0 comments on commit f73d0ff

Please sign in to comment.