mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 13:43:23 +00:00
refactor(stream) stream -> pipe
This commit is contained in:
parent
9ba0fb377e
commit
02b06c4395
3 changed files with 7 additions and 7 deletions
|
|
@ -11,7 +11,7 @@
|
|||
SLASH,
|
||||
ISWIN32,
|
||||
ext,
|
||||
path, fs, zlib, url, stream,
|
||||
path, fs, zlib, url, pipe,
|
||||
|
||||
OK, FILE_NOT_FOUND, MOVED_PERMANENTLY = 301,
|
||||
REQUEST, RESPONSE,
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
exports.VOLUMES = getVolumes(),
|
||||
|
||||
/* Additional Modules */
|
||||
exports.stream = stream = srvrequire('stream'),
|
||||
exports.pipe = pipe = srvrequire('pipe'),
|
||||
exports.socket = srvrequire('socket'),
|
||||
exports.auth = srvrequire('auth').auth,
|
||||
exports.appcache = srvrequire('appcache'),
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
query : getQuery(p.request)
|
||||
}) );
|
||||
|
||||
stream.createPipe({
|
||||
pipe.create({
|
||||
from: p.name,
|
||||
write: p.response,
|
||||
zip : lGzip && !p.gziped,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue