summaryrefslogtreecommitdiff
path: root/op_crates/fetch/26_fetch.js
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/fetch/26_fetch.js')
-rw-r--r--op_crates/fetch/26_fetch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/op_crates/fetch/26_fetch.js b/op_crates/fetch/26_fetch.js
index 887e329f9..c8b2c8794 100644
--- a/op_crates/fetch/26_fetch.js
+++ b/op_crates/fetch/26_fetch.js
@@ -990,7 +990,7 @@
this.url = new URL(String(input)).href;
}
- if (init && "method" in init) {
+ if (init && "method" in init && init.method) {
this.method = normalizeMethod(init.method);
}