braid-http 0.1.10 → 0.1.11
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-client.js +2 -1
- package/braid-http-server.js +1 -1
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -366,7 +366,8 @@ var subscription_parser = (cb) => ({
|
|
|
366
366
|
version: this.state.version,
|
|
367
367
|
parents: this.state.parents,
|
|
368
368
|
body: this.state.body,
|
|
369
|
-
patches: this.state.patches
|
|
369
|
+
patches: this.state.patches,
|
|
370
|
+
headers: this.state.headers
|
|
370
371
|
})
|
|
371
372
|
|
|
372
373
|
// Reset the parser for the next version!
|
package/braid-http-server.js
CHANGED
|
@@ -237,7 +237,7 @@ function braidify (req, res, next) {
|
|
|
237
237
|
res.statusCode = 209
|
|
238
238
|
res.setHeader("subscribe", req.headers.subscribe)
|
|
239
239
|
res.setHeader('cache-control', 'no-cache, no-transform')
|
|
240
|
-
res.setHeader('transfer-encoding', '')
|
|
240
|
+
if (req.httpVersionMajor == 1) res.setHeader('transfer-encoding', '')
|
|
241
241
|
|
|
242
242
|
// Tell nginx not to buffer the subscription
|
|
243
243
|
res.setHeader('X-Accel-Buffering', 'no')
|