@@ -3383,7 +3383,11 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
3383
3383
Note: Since running a user-defined regular expression has a security concern, it is prohibited.
3384
3384
3385
3385
1. Set |hasCondition| to true.
3386
- 1. If |condition|["{{RouterCondition/requestMethod}}"] [=map/exists=] , set |hasCondition| to true.
3386
+ 1. If |condition|["{{RouterCondition/requestMethod}}"] [=map/exists=] :
3387
+ 1. Let |method| be |condition|["{{RouterCondition/requestMethod}}"] .
3388
+ 1. If |method| is not a [=/method=] , then return false.
3389
+ 1. If |method| is a [=forbidden method=] , then return false.
3390
+ 1. Set |hasCondition| to true.
3387
3391
1. If |condition|["{{RouterCondition/requestMode}}"] [=map/exists=] , set |hasCondition| to true.
3388
3392
1. If |condition|["{{RouterCondition/requestDestination}}"] [=map/exists=] , set |hasCondition| to true.
3389
3393
1. If |condition|["{{RouterCondition/runningStatus}}"] [=map/exists=] , set |hasCondition| to true.
@@ -3435,6 +3439,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
3435
3439
1. If running [=match=] with |pattern| and |request|'s [=request/URL=] returns null, return false.
3436
3440
1. If |condition|["{{RouterCondition/requestMethod}}"] [=map/exists=] , then:
3437
3441
1. Let |method| be |condition|["{{RouterCondition/requestMethod}}"] .
3442
+ 1. [=method/Normalize=] |method|.
3438
3443
1. If |request|'s [=request/method=] is not |method|, return false.
3439
3444
1. If |condition|["{{RouterCondition/requestMode}}"] [=map/exists=] , then:
3440
3445
1. Let |mode| be |condition|["{{RouterCondition/requestMode}}"] .
0 commit comments