There was an error while loading. Please reload this page.
1 parent 69c37b3 commit 89e5778Copy full SHA for 89e5778
模块/zlib.md
@@ -81,7 +81,7 @@ server.listen('3000');
81
82
## 服务端字符串gzip压缩
83
84
-代码跟前面例子大同小异。这里采用了**slib.gzipSync(str)**对字符串进行gzip压缩。
+代码跟前面例子大同小异。这里采用了 **zlib.gzipSync(str)** 对字符串进行gzip压缩。
85
86
```javascript
87
var http = require('http');
@@ -107,4 +107,4 @@ server.listen('3000');
107
108
## 写在后面
109
110
-deflate压缩的使用也差不多,这里就不赘述。更多详细用法可参考[官方文档](https://nodejs.org/api/zlib.html#zlib_class_options)。
+deflate压缩的使用也差不多,这里就不赘述。更多详细用法可参考[官方文档](https://nodejs.org/api/zlib.html#zlib_class_options)。
0 commit comments