[chore]: Bump golang.org/x/oauth2 from 0.16.0 to 0.17.0 (#2629)

This commit is contained in:
dependabot[bot]
2024-02-12 10:04:32 +00:00
committed by GitHub
parent d0e674b3da
commit db45e65e89
5 changed files with 21 additions and 18 deletions

View File

@@ -1510,13 +1510,12 @@ func (mh *MetaHeadersFrame) checkPseudos() error {
}
func (fr *Framer) maxHeaderStringLen() int {
v := fr.maxHeaderListSize()
if uint32(int(v)) == v {
return int(v)
v := int(fr.maxHeaderListSize())
if v < 0 {
// If maxHeaderListSize overflows an int, use no limit (0).
return 0
}
// They had a crazy big number for MaxHeaderBytes anyway,
// so give them unlimited header lengths:
return 0
return v
}
// readMetaFrame returns 0 or more CONTINUATION frames from fr and