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