Commit d0e731c7 authored by Bryan Tong's avatar Bryan Tong

Merge branch 'fixStaticQueryStrings' into 'master'

Kado will now send static files with query string additives.

See merge request kado/kado!275
parents 6dd0e874 67466283
Pipeline #4313 passed with stage
in 41 seconds
......@@ -45,7 +45,8 @@ class StaticServer {
request (req, res) {
const testFile = this.resolve(req.url)
const url = req.url.split('?').shift()
const testFile = this.resolve(url)
if (!fs.exists(testFile)) return
const type = Mime.getType(testFile) || Mime.getType('test.txt')
return fs.stat(testFile)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment