(iconPath: string)
| 54 | }) |
| 55 | |
| 56 | function resolveSync(iconPath: string) { |
| 57 | const path = resolve(iconPath) |
| 58 | const s = statSync(path) |
| 59 | |
| 60 | if (s.isDirectory()) throw createIsDirError(path) |
| 61 | |
| 62 | return path |
| 63 | } |
| 64 | |
| 65 | function send(req: Request, res: Response, icon: FaviconBody) { |
| 66 | // Set headers |
no test coverage detected