Skip to content

HTTP/2 not following redirects #2836

@kylsgl

Description

@kylsgl

Reproducible By

Using an Agent dispatcher with allowH2 set to true and maxRedirections set to >0

Logs & Screenshots

Response header of https://imgur.com/qRKTc1U.jpeg with maxRedirections set to 50

{
  'retry-after': '0',
  location: 'https://i.imgur.com/qRKTc1U.jpeg',
  'accept-ranges': 'bytes',
  date: 'Sun, 25 Feb 2024 08:55:46 GMT',       
  'x-served-by': 'cache-mrs10565-MRS',
  'x-cache': 'HIT',
  'x-cache-hits': '0',
  'x-timer': 'S1708851346.142524,VS0,VE0',     
  server: 'cat factory 1.0',
  'strict-transport-security': 'max-age=300',
  'cache-control': 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0',  
  'x-frame-options': 'DENY',
  'access-control-allow-origin': 'https://imgur.com',
  'access-control-allow-credentials': 'false',
  'content-length': '0',
  [Symbol(nodejs.http2.sensitiveHeaders)]: []
}

Environment

Node.js v20.11.0
undici 6.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    H2Pull requests or issues related to HTTP/2bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions