Skip to content

Commit

Permalink
chore(bidi): Handle headers properly in BiDi network.continueRequest (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes authored Jan 10, 2025
1 parent 8917217 commit ca94291
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ export class BidiNetworkManager {
if (param.intercepts) {
// We do not support intercepting redirects.
if (redirectedFrom) {
let params = {};
if (redirectedFrom._originalRequestRoute?._alreadyContinuedHeaders)
params = toBidiRequestHeaders(redirectedFrom._originalRequestRoute._alreadyContinuedHeaders ?? []);

this._session.sendMayFail('network.continueRequest', {
request: param.request.request,
...(redirectedFrom._originalRequestRoute?._alreadyContinuedHeaders || {}),
...params,
});
} else {
route = new BidiRouteImpl(this._session, param.request.request);
Expand Down

0 comments on commit ca94291

Please sign in to comment.