Skip to content

Commit

Permalink
fix: do not send code refs over http (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored Jan 29, 2020
1 parent 236c935 commit 9cbf329
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@ class Factory {
const res = await ky.post(
`${options.endpoint}/spawn`,
{
json: { ...options, remote: false } // avoid recursive spawning
json: {
...options,
// avoid recursive spawning
remote: false,
// do not send code refs over http
ipfsModule: { ...options.ipfsModule, ref: undefined },
ipfsHttpModule: { ...options.ipfsHttpModule, ref: undefined }
}
}
).json()
return new ControllerRemote(
Expand Down

0 comments on commit 9cbf329

Please sign in to comment.