Make CodeQL happy (#2294)
This commit is contained in:
parent
470460f069
commit
e1c7ea1770
|
@ -503,7 +503,7 @@ func (xTransport *XTransport) Fetch(
|
|||
if xTransport.h3Transport != nil && !hasAltSupport {
|
||||
if alt, found := resp.Header["Alt-Svc"]; found {
|
||||
dlog.Debugf("Alt-Svc [%s]: [%s]", url.Host, alt)
|
||||
altPort := uint16(port)
|
||||
altPort := uint16(port & 0xffff)
|
||||
for i, xalt := range alt {
|
||||
for j, v := range strings.Split(xalt, ";") {
|
||||
if i > 8 || j > 16 {
|
||||
|
|
Loading…
Reference in New Issue