Permalink
Browse files

Add an app check

  • Loading branch information...
kriszyp committed Oct 14, 2011
1 parent b5c417c commit 80147e35e597eeac57c0ca3e88bb6431637a8c23
Showing with 3 additions and 0 deletions.
  1. +3 −0 jsgi-node.js
View
@@ -209,6 +209,9 @@ function Response( response, stream ) {
}
function Listener( app ) {
+ if(typeof app != "function"){
+ throw new Error("app must be a function");
+ }
return function( request, response ) {
var connection = request.connection;
request = new Request( request );

0 comments on commit 80147e3

Please sign in to comment.