Skip to content

Commit

Permalink
http2: fix tipos in comment
Browse files Browse the repository at this point in the history
Change-Id: I20cd0f8db534fe2a849306eb7e0c8ee5b434e88f
Reviewed-on: https://go-review.googlesource.com/c/net/+/576175
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Apr 3, 2024
1 parent ba87210 commit 762b58d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http2/frame.go
Expand Up @@ -1591,7 +1591,7 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {
log.Printf("http2: header list too large")
}
// It would be nice to send a RST_STREAM before sending the GOAWAY,
// but the struture of the server's frame writer makes this difficult.
// but the structure of the server's frame writer makes this difficult.
return nil, ConnectionError(ErrCodeProtocol)
}

Expand All @@ -1603,7 +1603,7 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {
log.Printf("http2: invalid header: %v", invalid)
}
// It would be nice to send a RST_STREAM before sending the GOAWAY,
// but the struture of the server's frame writer makes this difficult.
// but the structure of the server's frame writer makes this difficult.
return nil, ConnectionError(ErrCodeProtocol)
}

Expand Down

0 comments on commit 762b58d

Please sign in to comment.