next.js
c1ca6ac9 - fix: remove traceparent from cachekey should not remove traceparent from original object (#64727)

Commit
1 year ago
fix: remove traceparent from cachekey should not remove traceparent from original object (#64727) ### What? I submitted PR #64499 , it got merged, but it contains a mistake. I'm terribly sorry about this! By removing the traceparent from the cachekey, we mistakenly removed the header from the original object. Causing the actual request to be executed without the traceparent header. ### Why? Creating a cachekey should not alter the original object. ### How? Flip the arguments for Object.assign --------- Co-authored-by: Jeffrey <jeffrey@jeffreyzutt.nl> Co-authored-by: JJ Kasper <jj@jjsweb.site>
Author
Parents
Loading