Skip to content

v7 RetryAgent converts header with multiple entries (eg. set-cookie) to \x00 #3934

Description

@peterhirn

Bug Description

After upgrading from 6.21.0 to 7.1.0 the response set-cookie header contains \x00 instead of actual values.

Expected

{
  server: 'nginx',
  date: 'Mon, 09 Dec 2024 07:11:11 GMT',
  'content-type': 'application/json; charset=utf-8',
  'content-length': '359',
  connection: 'keep-alive',
  'set-cookie': [
    'CloudFront-Policy=xxx; Path=/; Domain=example.com; HTTPOnly',
    'CloudFront-Key-Pair-Id=xxx; Path=/; Domain=example.com; HTTPOnly',
    'CloudFront-Signature=xxx; Path=/; Domain=example.com; HTTPOnly'
  ]
}

Received

{
  server: 'nginx',
  date: 'Mon, 09 Dec 2024 07:08:57 GMT',
  'content-type': 'application/json; charset=utf-8',
  'content-length': '364',
  connection: 'keep-alive',
  'set-cookie': '\x00\x00\x00',
}

Reproducible By

Expected Behavior

Logs & Screenshots

Environment

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions