lint: white space
This commit is contained in:
parent
04b654b893
commit
3a5c67a077
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ function httpRoute(req, res) {
|
|||
url = url.replace('_:_', ':') // escaped drive colon
|
||||
url = url.replace(/^\/([^/]*):/, '$1') // strip leading slash
|
||||
|
||||
if (url.match(/.(jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico)(\?[0-9]*)?$/i)) {
|
||||
if (url.match(/.(jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico)(\?[0-9]*)?$/i)) {
|
||||
res.sendFile(path.resolve(url))
|
||||
} else {
|
||||
res.writeHead(403)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue