diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-18 16:31:43 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-18 16:31:43 +0900 |
| commit | 9e81fbd0372929880c4de5755da9ec4c67893a20 (patch) | |
| tree | 2be3d01b46a187451c42a2bd3735bd5ae18c7a9d /src/server.ts | |
| parent | [Fuck] Type definition (diff) | |
| download | misskey-9e81fbd0372929880c4de5755da9ec4c67893a20.tar.gz misskey-9e81fbd0372929880c4de5755da9ec4c67893a20.tar.bz2 misskey-9e81fbd0372929880c4de5755da9ec4c67893a20.zip | |
:v:
Diffstat (limited to '')
| -rw-r--r-- | src/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.ts b/src/server.ts index 5f00fd2813..45ee5b1895 100644 --- a/src/server.ts +++ b/src/server.ts @@ -19,7 +19,7 @@ app.disable('x-powered-by'); // Drop request that without 'Host' header app.use((req, res, next) => { - if (!req.headers.host) { + if (!req.headers['host']) { res.sendStatus(400); } else { next(); |