mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
3dfd8fc182
commit
44195df58d
1 changed files with 6 additions and 4 deletions
10
server.js
10
server.js
|
|
@ -250,7 +250,10 @@ CloudServer._controller=function(pReq, pRes)
|
|||
*/
|
||||
var url = require("url");
|
||||
var pathname = url.parse(pReq.url).pathname;
|
||||
console.log('pathname: '+pathname);
|
||||
|
||||
/* added supporting of Russian language in directory names */
|
||||
pathname = Querystring.unescape(pathname);
|
||||
console.log('pathname: ' + pathname);
|
||||
|
||||
/* получаем поддерживаемые браузером кодировки*/
|
||||
var lAcceptEncoding = pReq.headers['accept-encoding'];
|
||||
|
|
@ -368,9 +371,8 @@ CloudServer._controller=function(pReq, pRes)
|
|||
*/
|
||||
if (pathname==='')
|
||||
pathname = '/';
|
||||
|
||||
/* added supporting of Russian language in directory names */
|
||||
LeftDir = Querystring.unescape(pathname);
|
||||
|
||||
LeftDir = pathname;
|
||||
RightDir = LeftDir;
|
||||
|
||||
/* Проверяем с папкой ли мы имеем дело */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue