(data)
| 316 | }; |
| 317 | |
| 318 | const respond = (data) => { |
| 319 | this.headers(this.req, headers); |
| 320 | this.res.cork(() => { |
| 321 | Object.keys(headers).forEach((key) => { |
| 322 | this.res.writeHeader(key, String(headers[key])); |
| 323 | }); |
| 324 | this.res.end(data); |
| 325 | }); |
| 326 | callback(); |
| 327 | }; |
| 328 | |
| 329 | if (!this.httpCompression || !options.compress) { |
| 330 | respond(data); |