Long story short. I have routes that does some database lookup with an API based on Futures.
Then problem is, that the lines 102-107 in ehttp.dart makes it impossible to do this since the outputStream is being closed as soon as the inputstream is.
synthReq.inputStream.onClosed = () {
// Close response stream if needed.
if (!synthRes.outputStream.closed) {
synthRes.outputStream.close();
}
};
Perhaps I'm doing something wrong.
Removing these lines does make it work but it has a sideeffect in my middlewares.
Long story short. I have routes that does some database lookup with an API based on Futures.
Then problem is, that the lines 102-107 in ehttp.dart makes it impossible to do this since the outputStream is being closed as soon as the inputstream is.
Perhaps I'm doing something wrong.
Removing these lines does make it work but it has a sideeffect in my middlewares.