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.
- package/braid-http-server.js +3 -2
- package/package.json +1 -1
package/braid-http-server.js
CHANGED
|
@@ -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
|
-
|
|
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
|