Commit 562625a
committed
Add
Supports use such as:
```javascript
// Not going to write again for a while. If compression middleware is
// installed let's tell it to flush what we've got through to the client.
if (res.flushCompression) {
res.flushCompression();
}
```
Currently the `res` object has a `flush` method regardless of whether
compression middleware is installed. The built-in `flush` method issues a
noisy deprecation warning. This patch provides an alias for the `flush`
method to allow detection of the compression middleware's `flush`.
This addresses expressjs#72.flushCompression as an alias for flush
1 parent 3333505 commit 562625a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments