mirror of https://gitee.com/bigwinds/arangodb
jslint
This commit is contained in:
parent
4063a7854c
commit
f5ccad83de
|
@ -2213,14 +2213,14 @@ function rewriteRequest (req, res, options, next) {
|
||||||
function pathHandler (req, res, options, next) {
|
function pathHandler (req, res, options, next) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var filename;
|
var filename, encodedFilename;
|
||||||
filename = fs.join(options.path, fs.join.apply(fs.join, req.suffix));
|
filename = fs.join(options.path, fs.join.apply(fs.join, req.suffix));
|
||||||
|
|
||||||
if (options.hasOwnProperty('root')) {
|
if (options.hasOwnProperty('root')) {
|
||||||
var root = options.root;
|
var root = options.root;
|
||||||
|
|
||||||
filename = fs.join(root, filename);
|
filename = fs.join(root, filename);
|
||||||
var encodedFilename = filename;
|
encodedFilename = filename;
|
||||||
}
|
}
|
||||||
if (fs.exists(filename)) {
|
if (fs.exists(filename)) {
|
||||||
res.responseCode = exports.HTTP_OK;
|
res.responseCode = exports.HTTP_OK;
|
||||||
|
|
Loading…
Reference in New Issue