diff options
| -rw-r--r-- | bucky/app/federate.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bucky/app/federate.js b/bucky/app/federate.js index 56550fc..41b1164 100644 --- a/bucky/app/federate.js +++ b/bucky/app/federate.js @@ -1,4 +1,4 @@ -var fetch = require('fetch') +var fetch = require('node-fetch') var db = require('../db') module.exports = { @@ -53,6 +53,8 @@ module.exports = { var json = data.toJSON() fetch("https://bucky.asdf.us/raw/import/" + type, { method: 'PUT', + data: json, + headers: { 'content-type': 'application/json; charset=utf-8' }, }).then(() => {}) } |
