Skip to content

cdp: don't duplicate keys in Network.responseReceived #966

@krichprollsch

Description

@krichprollsch

It seems chromedp is sensible of duplicated keys in the Network.responseReceived JSON.

2025/08/22 16:45:52 <- {"method":"Network.responseReceived","params":{"requestId":"REQ-2","loaderId":"LID-1","frameId":"TID-1","response":{"url":"https://news.ycombinator.com/hn.js?sJrC2FNC7onakFWpNx3H","status":200,"statusText":"OK","headers":{"server":"nginx","date":"Fri, 22 Aug 2025 14:45:52 GMT","content-type":"application/javascript","last-modified":"Fri, 01 Aug 2025 19:48:2
9 GMT","vary":"Accept-Encoding","etag":"W/\"688d1a0d-144b\"","expires":"Mon, 30 Jul 2035 19:48:29 GMT","cache-control":"max-age=313563757","cache-control":"public","content-encoding":"gzip"}}},"sessionId":"SID-1"}
2025/08/22 16:45:52 ERROR: jsontext: duplicate object member name "cache-control" within "/params/response/headers"

Metadata

Metadata

Assignees

No one assigned

    Labels

    CDPChrome Debug Protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions