Commit c8accde
committed
Fixes file saving in
Previously, `formatData` did not correctly handle cases when the
returned content was binary in nature but was not a `Buffer` instance.
This led to bugs such as failures when running:
`npx webpagetest waterfall <test_id> -o out.png -k <key>`
I'm not sure this patch is 100% correct, as the tests require Docker and
that isn't running on my current device.formatData.1 parent 7be9af9 commit c8accde
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments