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 Mar 30, 2022
1 parent 782fc6a commit 1f811a1
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 @@ -2672,13 +2672,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 1f811a1

Please sign in to comment.