mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-11 19:20:55 +01:00
oops
This commit is contained in:
parent
638befe9d6
commit
eb0975e839
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module.exports = (app: express.Application) => {
|
||||||
return url[url.length - 1] === '/' ? url.substr(0, url.length - 1) : url;
|
return url[url.length - 1] === '/' ? url.substr(0, url.length - 1) : url;
|
||||||
}
|
}
|
||||||
|
|
||||||
// req.headers['cookie'] は常に string ですが、型定義の都合上
|
// req.headers['referer'] は常に string ですが、型定義の都合上
|
||||||
// string | string[] になっているので string を明示しています
|
// string | string[] になっているので string を明示しています
|
||||||
const referer = req.headers['referer'] as string;
|
const referer = req.headers['referer'] as string;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue