Closed udivankin closed 6 years ago
Ok, I fixed the bug. Currently the data received is the arraybuffer. Also, do note that res.end should look like this: res.end('POST pingback' + str);
Yep, just a typo.
FYI considering you state that Mitol aimed as http drop-in replacement, res.on('data') callback argument should not include headers like it does currently, but request body only
POST /HTTP/1.1
host localhost:8081
connection keep-alive
content-length 11
origin chrome-extension://aahelpfcopefplnmnphdochceilphfeb
user-agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 YaBrowser/17.7.1.720 Yowser/2.5 Safari/537.36
content-type text/plain;charset=UTF-8
accept */*
accept-encoding gzip, deflate, br
accept-language ru,en;q=0.8
requestbody
Forgot to say thanks for your work!
Yes, you are correct!
I will fix it...
Thank you for appreciating the project!
Whats the status of this issue? It's not letting me use koa or express with body content
@heroic I will open a new issue, the problem is the response is the plain object atm., not the stream.
@udivankin req.on is now implemented, also the data returned is of type string. Currently request content-type is not checked!
Tried to make "hello world" post/put request handler but it does not seem to work (while GET does work as expected)
Here's the code: