Skip to content
Browse files

fix bug when end event is already emitted on a GET request without Co…

…ntent-Type header
  • Loading branch information...
1 parent bf93098 commit 1dbb626ddd090257232e7023d02ff36c3c91186e @Filirom1 committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/
4 src/
@@ -260,6 +260,10 @@ validate = (req, path, specs, next) ->
return process() if'json') or'application/x-www-form-urlencoded') or'multipart/form-data')
+ # do not try body parsing if there is no body to parse
+ return process() if req.method in ['GET', 'DELETE']
# body parsing, if incoming request is not json, multipart or form-urlencoded
# by default, no body
delete req.body

0 comments on commit 1dbb626

Please sign in to comment.
Something went wrong with that request. Please try again.