If serving a file through a mock, chunk will be a buffer instead of a string. So add decoding to utf8 for the recording functionality.
Before: If recording a mock which response contains an other json file, the GUI will show the response as [object object].
After: After decoding the buffer to a utf8 string the GUI shows the response correctly.
If serving a file through a mock, chunk will be a buffer instead of a string. So add decoding to utf8 for the recording functionality.
Before: If recording a mock which response contains an other json file, the GUI will show the response as [object object]. After: After decoding the buffer to a utf8 string the GUI shows the response correctly.