summaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index e9bfa9e10b..f0d60fa651 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -13,7 +13,7 @@ import activityPub from './activitypub';
import webFinger from './webfinger';
import config from '../config';
-// Init server
+// Init app
const app = new Koa();
app.proxy = true;
app.use(bodyParser);
@@ -46,9 +46,9 @@ function createServer() {
Object.keys(config.https).forEach(k => {
certs[k] = fs.readFileSync(config.https[k]);
});
- return https.createServer(certs, app);
+ return https.createServer(certs, app.callback);
} else {
- return http.createServer(app);
+ return http.createServer(app.callback);
}
}