mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
Fix http server constructor call
This commit is contained in:
parent
2cb55d04eb
commit
c4622a4968
@ -41,7 +41,7 @@ class Strapi extends EventEmitter {
|
|||||||
this.app = require('koa')();
|
this.app = require('koa')();
|
||||||
|
|
||||||
// Mount the HTTP server.
|
// Mount the HTTP server.
|
||||||
this.server = http.Server(this.app.callback());
|
this.server = new http.Server(this.app.callback());
|
||||||
|
|
||||||
// Expose every middleware inside `strapi.middlewares`.
|
// Expose every middleware inside `strapi.middlewares`.
|
||||||
this.middlewares = require('koa-load-middlewares')({
|
this.middlewares = require('koa-load-middlewares')({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user