node-http-server – Diff between revs 23 and 24
?pathlinks?
Rev 23 | Rev 24 | |||
---|---|---|---|---|
Line 90... | Line 90... | |||
90 | return; |
90 | return; |
|
Line 91... | Line 91... | |||
91 | |
91 | |
|
Line 92... | Line 92... | |||
92 | } |
92 | } |
|
93 | |
93 | |
|
94 | // Serve the document index. |
94 | // Serve the document index. |
|
95 | fs.access(requestPath, fs.constants.R_OK, (error) => { |
95 | fs.access(root, fs.constants.R_OK, (error) => { |
|
96 | if (error) { |
96 | if (error) { |
|
97 | process.nextTick(() => { |
97 | process.nextTick(() => { |
|
98 | callback('The server was unable to access the filesystem path: ' + |
98 | callback('The server was unable to access the filesystem path: ' + |