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.
@@ -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!
@@ -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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"