Skip to content

Commit

Permalink
declare var at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela authored and mmarchini committed Apr 12, 2023
1 parent 5621fa8 commit 89e7ac8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/server.js
Expand Up @@ -27,6 +27,7 @@ var patchResponse = require('./response');

var domain;
var http2;
var spdy;

patchResponse(http.ServerResponse);
patchRequest(http.IncomingMessage);
Expand Down Expand Up @@ -186,7 +187,7 @@ function Server(options) {
];

if (options.spdy) {
var spdy = require('spdy');
spdy = require('spdy');
this.spdy = true;
this.server = spdy.createServer(options.spdy);
} else if (options.http2) {
Expand Down

0 comments on commit 89e7ac8

Please sign in to comment.