Skip to content

Commit 89e7ac8

Browse files
massimocandelammarchini
authored andcommitted
declare var at the beginning
1 parent 5621fa8 commit 89e7ac8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var patchResponse = require('./response');
2727

2828
var domain;
2929
var http2;
30+
var spdy;
3031

3132
patchResponse(http.ServerResponse);
3233
patchRequest(http.IncomingMessage);
@@ -186,7 +187,7 @@ function Server(options) {
186187
];
187188

188189
if (options.spdy) {
189-
var spdy = require('spdy');
190+
spdy = require('spdy');
190191
this.spdy = true;
191192
this.server = spdy.createServer(options.spdy);
192193
} else if (options.http2) {

0 commit comments

Comments
 (0)