node-http-server – Diff between revs 25 and 26

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 25 Rev 26
Line 177... Line 177...
177 const requestPath = trimmedPath === '/' ? 177 const requestPath = trimmedPath === '/' ?
178 path.join(root, trimmedPath) : 178 path.join(root, trimmedPath) :
179 path.resolve(root, trimmedPath); 179 path.resolve(root, trimmedPath);
Line 180... Line 180...
180   180  
-   181 fs.realpath(requestPath, (error, resolvedPath) => {
181 fs.realpath(requestPath, (error, resolvedPath) => { 182 // If the path does not exist, then return early.
182 if (error) { 183 if (error) {
183 callback('Unknown path requested: ' + 184 callback('Unknown path requested: ' +
184 requestAddress.address + ':' + 185 requestAddress.address + ':' +
185 requestAddress.port + 186 requestAddress.port +