Skip to content

Commit c584dd5

Browse files
committed
Force patched responseData to a string
1 parent cb34207 commit c584dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ exports.Server = function Server(bsClient, workers, config, callback) {
249249
}
250250
});
251251
} else {
252-
patchResponse(responseData, headers, function (data, headers) {
252+
patchResponse(responseData && responseData.toString(), headers, function (data, headers) {
253253
callback && callback(data, headers);
254254
});
255255
}

0 commit comments

Comments
 (0)