Commit f7adfc4
authored
fix(curl): stream option handling in curl (#557)
There are two major problems when supplying `opts.stream`
1. curl methods do produce junk in temp folder. Curl command dumps
headers to some file in tmp folder and cleans it up only in the
`parse.response()` method. This method is not called if
`opts.stream` is set
2. there is no way to access response code, because it is also writen to
the headers dump file in temp folder.
This commit address both of those problems by setting `job.on_exit`
callback even if `opts.stream` is specified.1 parent 6778384 commit f7adfc4
1 file changed
+20
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
303 | 298 | | |
304 | | - | |
| 299 | + | |
305 | 300 | | |
306 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
0 commit comments