summaryrefslogtreecommitdiffstats
path: root/lib/response-parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/response-parser.js')
-rw-r--r--lib/response-parser.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/response-parser.js b/lib/response-parser.js
index cb50f0a..2d64a47 100644
--- a/lib/response-parser.js
+++ b/lib/response-parser.js
@@ -79,12 +79,12 @@ const createResponseParser = () => {
return out
}
-const p = createResponseParser()
-p.on('error', console.error)
-p.on('header', h => console.log('header', h))
-p.on('data', d => console.log('data', d.toString('utf8')))
-const b = str => Buffer.from(str, 'utf8')
-p.write(b('31 gemini://examp'))
-p.write(b('le.org/foo?bar\r\n'))
+// const p = createResponseParser()
+// p.on('error', console.error)
+// p.on('header', h => console.log('header', h))
+// p.on('data', d => console.log('data', d.toString('utf8')))
+// const b = str => Buffer.from(str, 'utf8')
+// p.write(b('31 gemini://examp'))
+// p.write(b('le.org/foo?bar\r\n'))
module.exports = createResponseParser