braid-http 1.3.0 → 1.3.1

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.
@@ -578,12 +578,6 @@ function parse_headers (input) {
578
578
  var h = extractHeader(input)
579
579
  if (!h) return {result: 'waiting'}
580
580
 
581
- // Skip "HTTP 104 Multiresponse"
582
- if (h.header_string.startsWith('HTTP 104')) {
583
- h = extractHeader(h.remaining_bytes)
584
- if (!h) return {result: 'waiting'}
585
- }
586
-
587
581
  // Skip "HTTP 200 OK"
588
582
  h.header_string = h.header_string.replace(/^HTTP 200.*\r?\n/, '')
589
583
 
@@ -367,12 +367,6 @@ async function send_update(res, data, url, peer) {
367
367
  assert(body_exists || patches, 'Missing body or patches')
368
368
  assert(!(body_exists && patches), 'Cannot send both body and patches')
369
369
 
370
- // Write the beginning of a new multiresponse response
371
- if (!res.wrote_104_multiresponse) {
372
- res.write(`HTTP 104 Multiresponse\r\n\r\n`)
373
- res.wrote_104_multiresponse = true
374
- }
375
-
376
370
  res.write(`HTTP 200 OK\r\n`)
377
371
 
378
372
  // Write the headers or virtual headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"