Skip to content
Myr

fix(handleEvent): use `dispatch` instead of `fetch` (#568)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent 93b55bb · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:deno_dist/hono.ts+1 added-1 removed
266 unmodified lines
267 })()268 }269270 handleEvent = (event: FetchEvent) => {271 return this.fetch(event.request, event)271 return this.dispatch(event.request, event)272 }273274 fetch = (request: Request, Environment?: E['Bindings'], executionCtx?: ExecutionContext) => {275 return this.dispatch(request, executionCtx, Environment)
7 unmodified lines
modified:src/hono.ts+1 added-1 removed
266 unmodified lines
267 })()268 }269270 handleEvent = (event: FetchEvent) => {271 return this.fetch(event.request, event)271 return this.dispatch(event.request, event)272 }273274 fetch = (request: Request, Environment?: E['Bindings'], executionCtx?: ExecutionContext) => {275 return this.dispatch(request, executionCtx, Environment)
7 unmodified lines