mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-14 13:20:29 -05:00
Refactor buffer constructor (#2489)
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = {
|
||||
if req.url.includes("replace")
|
||||
write = res.write
|
||||
res.write = (chunk) ->
|
||||
chunk = new Buffer(chunk.toString().replace("https server", "replaced content"))
|
||||
chunk = Buffer.from(chunk.toString().replace("https server", "replaced content"))
|
||||
|
||||
write.call(@, chunk)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user