statebus 7.0.2 → 7.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -2
  2. package/servers.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statebus",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "description": "Synchronize state.",
5
5
  "main": "statebus.js",
6
6
  "scripts": {
@@ -12,7 +12,6 @@
12
12
  "statebus.js",
13
13
  "clients.js",
14
14
  "servers.js",
15
- "node_modules/braidify",
16
15
  "extras/tests.js",
17
16
  "extras/tcp-bind.js"
18
17
  ],
package/servers.js CHANGED
@@ -182,6 +182,9 @@ function import_server (bus, options)
182
182
  else
183
183
  res.statusCode = 200
184
184
 
185
+ // We only return JSON
186
+ res.setHeader('Content-Type', 'application/json')
187
+
185
188
  // Do the get
186
189
  // cbus.honk = 'statelog'
187
190
  var key = req.path.substr(1)