braid-http 1.3.25 → 1.3.27

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.
@@ -311,7 +311,8 @@ function braidify (req, res, next) {
311
311
  var [multiplexer, stream] = req.headers.multiplexer.slice(1).split('/')
312
312
 
313
313
  var end_things = (msg) => {
314
- res.statusCode = 422 // Unprocessable Entity (but good syntax!)
314
+ // 422 = Unprocessable Entity (but good syntax!)
315
+ res.writeHead(422, {Multiplexer: req.headers.multiplexer})
315
316
  res.end(msg)
316
317
  }
317
318
 
@@ -472,7 +473,7 @@ function braidify (req, res, next) {
472
473
  // We have a subscription!
473
474
  res.statusCode = 209
474
475
  res.setHeader("subscribe", req.headers.subscribe ?? 'true')
475
- res.setHeader('cache-control', 'no-cache, no-transform')
476
+ res.setHeader('cache-control', 'no-cache, no-transform, no-store')
476
477
 
477
478
 
478
479
  // Note: I used to explicitly disable transfer-encoding chunked
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.3.25",
3
+ "version": "1.3.27",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"