Commit e695e99
authored
Always fully initialize the downstream Request (#48)
Until now, we only fully initialized the downstream request object when it's retrieved by script, i.e. when the `FetchEvent#request` accessor was invoked. However, since #38, we're resolving relative URLs based on the downstream request's URL, and hence need to ensure that it's initialized properly.
All tests I ran before trying to publish a new SDK, and hence running the full test suite, happened to invoked the accessor, so I didn't realize that things weren't working without doing so.
This patch fixes things, and also lightly improves some aspects of base URL handling I found while debugging this.1 parent 7b6e0ce commit e695e99
3 files changed
Lines changed: 21 additions & 9 deletions
File tree
- c-dependencies/js-compute-runtime
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
558 | 561 | | |
559 | | - | |
| 562 | + | |
| 563 | + | |
560 | 564 | | |
561 | 565 | | |
562 | 566 | | |
| |||
3290 | 3294 | | |
3291 | 3295 | | |
3292 | 3296 | | |
| 3297 | + | |
| 3298 | + | |
3293 | 3299 | | |
3294 | 3300 | | |
3295 | 3301 | | |
| |||
3342 | 3348 | | |
3343 | 3349 | | |
3344 | 3350 | | |
3345 | | - | |
3346 | | - | |
3347 | | - | |
3348 | | - | |
3349 | | - | |
3350 | | - | |
3351 | | - | |
| 3351 | + | |
3352 | 3352 | | |
3353 | 3353 | | |
3354 | 3354 | | |
| |||
3716 | 3716 | | |
3717 | 3717 | | |
3718 | 3718 | | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
3719 | 3724 | | |
3720 | 3725 | | |
3721 | 3726 | | |
| |||
3924 | 3929 | | |
3925 | 3930 | | |
3926 | 3931 | | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
3927 | 3937 | | |
3928 | 3938 | | |
3929 | 3939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
| |||
0 commit comments