Skip to content

Commit 3be6d65

Browse files
authored
Parse body on DELETE requests
1 parent c479319 commit 3be6d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type ReqWithBody<T = any> = IncomingMessage & {
99
body?: T
1010
} & EventEmitter
1111

12-
export const hasBody = (method: string) => ['POST', 'PUT', 'PATCH'].includes(method)
12+
export const hasBody = (method: string) => ['POST', 'PUT', 'PATCH', 'DELETE'].includes(method)
1313

1414
// Main function
1515
export const p =

0 commit comments

Comments
 (0)