sr/connect-basic-auth — pull request #2 by inadarei (2013-01-06 03:25:14+00:00)
Title: Unsafe use of res.end()

Calling res.end() does not terminate middleware's execution. Explicit exit from the function is necessary to prevent unwanted side-effects, which can include a "Error: Can't set headers after they are sent." from another (later) middleware.