Revert "Use http2"

This reverts commit 645481c2e8d13123c74271fa86291f10b99b9a55.
This commit is contained in:
syuilo 2018-04-13 14:07:42 +09:00
parent af1547eba1
commit 623f882960

View file

@ -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());
} }
} }