Skip to content

Commit

Permalink
Fixed res.end breakage
Browse files Browse the repository at this point in the history
Arguments passed to res.end were not applied. Fixed.
  • Loading branch information
spion committed May 9, 2013
1 parent cf0458b commit e137d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ class Router
end = res.end
status =
done: false
res.end = ->
res.end = (args...) ->
status.done = true
end.call(res)
end.apply(res, args)
handlerChain = rule.handlers
handle = (i) ->
n = (arg) ->
Expand Down

0 comments on commit e137d1a

Please sign in to comment.