'use strict'

const BodyStream = require('./body-stream')

exports.handleBodyRequest = (conn) => {
  new BodyStream(1024).pipe(conn)
}

@@ -92,16 +92,141 @@
 n) =%3E %7B%0A
+  const length = 1024 * 1024%0A  conn.write('HTTP/1.1 200 OK%5Cn')%0A  conn.write('Content-Type: text/plain%5Cn')%0A  conn.write('%5Cn')%0A
   new Bo
@@ -234,20 +234,22 @@
 yStream(
-1024
+length
 ).pipe(c

Send HTTP response on TCP channel