diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-11 18:26:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-11 18:26:09 +0900 |
| commit | 15a28810837407e478c6c7e5cfbfb49702473ed1 (patch) | |
| tree | b21bb3713950932b2b01a2b821298ea6ca8045fc /src/server/api/common | |
| parent | Update setup.en.md (#3202) (diff) | |
| download | sharkey-15a28810837407e478c6c7e5cfbfb49702473ed1.tar.gz sharkey-15a28810837407e478c6c7e5cfbfb49702473ed1.tar.bz2 sharkey-15a28810837407e478c6c7e5cfbfb49702473ed1.zip | |
[API] Fix #3203
Diffstat (limited to 'src/server/api/common')
| -rw-r--r-- | src/server/api/common/get-host-lower.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/api/common/get-host-lower.ts b/src/server/api/common/get-host-lower.ts index 92704b4aa9..26ddf6c6d0 100644 --- a/src/server/api/common/get-host-lower.ts +++ b/src/server/api/common/get-host-lower.ts @@ -1,5 +1,6 @@ import { toUnicode } from 'punycode'; export default (host: string) => { + if (host == null) return null; return toUnicode(host).toLowerCase(); }; |