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 authored and OrKoN committed Nov 18, 2024
1 parent 9c05359 commit f13d57d
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 @@ -7238,7 +7238,7 @@ steps given |request| and |response|:

network.BeforeRequestSentParameters = {
network.BaseParameters,
initiator: network.Initiator,
? initiator: network.Initiator,
}
</pre>
</dd>
Expand Down Expand Up @@ -7277,7 +7277,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 f13d57d

Please sign in to comment.