Closed yamalight closed 6 years ago
@yamalight Tried reproduce in tests in https://github.com/pedronauck/micro-router/pull/33, but to no avail. Really weird. I can repro your bug in an app using this package.
Removing this line makes the file read stream work in my app.
I think all of this is due to https://github.com/pedronauck/micro-router/issues/31, since apps using this package is directed to the dist/index
file, while the tests are using the raw source code.
@johanbrook Ooooh, that's a sneaky bug. Is there any way to manually update dist/
?
@yamalight Run npm run build
after cloning down this repo :)
@johanbrook ah, makes sense. gonna give it a shot, thanks!
For some reason when replying with stream while using micro-router, request fails to go through. E.g. the following code will result in
Cannot GET /
:Changing it to use only micro itself makes it work:
Any idea why that might happen? Am I doing something wrong? Is this a bug? (Haven't noticed any streams in tests)