mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactored
This commit is contained in:
parent
d564bd07a8
commit
ba6a73e366
6 changed files with 40 additions and 40 deletions
|
|
@ -31,6 +31,7 @@
|
|||
exports.rootrequire = rootrequire,
|
||||
|
||||
/* Native Modules*/
|
||||
exports.crypto = require('crypto'),
|
||||
exports.child_process = require('child_process'),
|
||||
exports.fs = require('fs'),
|
||||
exports.http = require('http'),
|
||||
|
|
@ -87,12 +88,12 @@
|
|||
function isWin32(){ return process.platform === 'win32'; }
|
||||
|
||||
/**
|
||||
* Функция создаёт заголовки файлов
|
||||
* в зависимости от расширения файла
|
||||
* перед отправкой их клиенту
|
||||
* @param pName - имя файла
|
||||
* @param pGzip - данные сжаты gzip'ом
|
||||
*/
|
||||
* Функция создаёт заголовки файлов
|
||||
* в зависимости от расширения файла
|
||||
* перед отправкой их клиенту
|
||||
* @param pName - имя файла
|
||||
* @param pGzip - данные сжаты gzip'ом
|
||||
*/
|
||||
function generateHeaders(pName, pGzip, pQuery){
|
||||
var lType = '',
|
||||
lCacheControl = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue