diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-13 13:36:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-13 13:36:21 +0900 |
| commit | 645481c2e8d13123c74271fa86291f10b99b9a55 (patch) | |
| tree | 4703141fdc60299b3f5327580342b9e7322ab212 /src/server | |
| parent | Fix (diff) | |
| download | sharkey-645481c2e8d13123c74271fa86291f10b99b9a55.tar.gz sharkey-645481c2e8d13123c74271fa86291f10b99b9a55.tar.bz2 sharkey-645481c2e8d13123c74271fa86291f10b99b9a55.zip | |
Use http2
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/index.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index a637e8598b..5f6d3a84df 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -3,7 +3,6 @@ */ import * as fs from 'fs'; -import * as http from 'http'; import * as http2 from 'http2'; import * as Koa from 'koa'; import * as Router from 'koa-router'; @@ -49,7 +48,7 @@ function createServer() { }); return http2.createSecureServer(certs, app.callback()); } else { - return http.createServer(app.callback()); + return http2.createServer(app.callback()); } } |