projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f990f24
)
Making requestListener for the construction of a http.Server optional, as it is for...
author
Micheil Smith
<micheil@brandedcode.com>
Fri, 30 Apr 2010 13:35:51 +0000
(23:35 +1000)
committer
Ryan Dahl
<ry@tinyclouds.org>
Sat, 1 May 2010 18:56:00 +0000
(11:56 -0700)
lib/http.js
patch
|
blob
|
history
diff --git
a/lib/http.js
b/lib/http.js
index
7cea1d7
..
90feb8a
100644
(file)
--- a/
lib/http.js
+++ b/
lib/http.js
@@
-521,7
+521,11
@@
function flushMessageQueue (socket, queue) {
function Server (requestListener) {
net.Server.call(this);
- this.addListener("request", requestListener);
+
+ if(requestListener){
+ this.addListener("request", requestListener);
+ }
+
this.addListener("connection", connectionListener);
}
sys.inherits(Server, net.Server);