diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-09 17:46:54 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-09 17:46:54 -0500 |
| commit | ead9d27ebc580ce428c991cbbd3ad505865ffd63 (patch) | |
| tree | 3d91872dc17760ea7df5ab4698f24bde6d838769 /proxy | |
| parent | 6a8e38d24c4866b8559f7116eac694fbf1da4ded (diff) | |
case sensitive
Diffstat (limited to 'proxy')
| -rw-r--r-- | proxy/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy/index.js b/proxy/index.js index f9203fc7..09328ba5 100644 --- a/proxy/index.js +++ b/proxy/index.js @@ -94,15 +94,15 @@ var mimes = { } function stream (req, res) { - var url = req.url.toLowerCase().split('?')[0] - var ext_partz = url.split('.'), ext = ext_partz[ext_partz.length-1] + var url = req.url.split('?')[0] + var ext_partz = url.toLowerCase().split('.'), ext = ext_partz[ext_partz.length-1] var mime = mimes[ext] || 'application/octet-stream' if (! url || url == '/') { url = 'index.html' mime = 'text/html' } - if (url == '/cordova.js' || url == 'favicon.ico') { + if (url == '/cordova.js' || url == '/favicon.ico') { res.writeHead(200, 'OK', { 'Content-type': 'application/javascript' }) res.end('{}') return |
