Skip to content

Commit

Permalink
Omit initiator on beforeRequestSent if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Nov 15, 2024
1 parent 3d64ec0 commit 3754ad3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -7214,7 +7214,7 @@ steps given |request| and |response|:

network.BeforeRequestSentParameters = {
network.BaseParameters,
initiator: network.Initiator,
? initiator: network.Initiator,
}
</pre>
</dd>
Expand Down Expand Up @@ -7253,7 +7253,8 @@ request sent</dfn> steps given |request|:

1. Let |initiator| be the result of [=get the initiator=] with |request|.

1. Set the <code>initiator</code> field of |params| to |initiator|.
1. If |initiator| is not [=map/is empty|empty=], set the <code>initiator</code> field
of |params| to |initiator|.

1. Assert: |params| matches the <code>network.BeforeRequestSentParameters</code>
production.
Expand Down

0 comments on commit 3754ad3

Please sign in to comment.