mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactor(ponse) getPathName: add checkArgs
This commit is contained in:
parent
08ce5dde50
commit
6d30d4b7bd
1 changed files with 6 additions and 6 deletions
|
|
@ -264,12 +264,12 @@
|
|||
function getPathName(req) {
|
||||
var pathname, parsed;
|
||||
|
||||
if (req) {
|
||||
parsed = url.parse(req.url);
|
||||
pathname = parsed.pathname;
|
||||
/* supporting of Russian language in directory names */
|
||||
pathname = querystring.unescape(pathname);
|
||||
}
|
||||
Util.checkArgs(arguments, ['req']);
|
||||
|
||||
parsed = url.parse(req.url);
|
||||
pathname = parsed.pathname;
|
||||
/* supporting of Russian language in directory names */
|
||||
pathname = querystring.unescape(pathname);
|
||||
|
||||
return pathname;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue