Skip to content

Commit

Permalink
refactor: use RequestInit
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Sep 15, 2022
1 parent 6c0dade commit 7c37781
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ const getRequestListener = (fetchCallback: FetchCallback) => {
const init = {
method: method,
headers: headerRecord,
} as {
method: string
headers: Record<string, string>
body?: Buffer
}
} as RequestInit

if (!(method === ('GET' || 'HEAD'))) {
const buffers = []
Expand Down

0 comments on commit 7c37781

Please sign in to comment.