mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 09:03:08 +02:00
parent
732e07a4b3
commit
16920caf9c
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
import * as http from 'http';
|
||||||
import * as http2 from 'http2';
|
import * as http2 from 'http2';
|
||||||
import * as Koa from 'koa';
|
import * as Koa from 'koa';
|
||||||
import * as Router from 'koa-router';
|
import * as Router from 'koa-router';
|
||||||
|
@ -48,7 +49,7 @@ function createServer() {
|
||||||
});
|
});
|
||||||
return http2.createSecureServer(certs, app.callback());
|
return http2.createSecureServer(certs, app.callback());
|
||||||
} else {
|
} else {
|
||||||
return http2.createServer(app.callback());
|
return http.createServer(app.callback());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue