Commit a1aaa612 authored by Kenton Varda's avatar Kenton Varda

Really actually fix HttpServer::drain().

It turns out I was testing it wrong, and it still doesn't work. :(
parent 502baf92
...@@ -1072,7 +1072,7 @@ public: ...@@ -1072,7 +1072,7 @@ public:
// Returns whether we can cleanly drain the stream at this point. // Returns whether we can cleanly drain the stream at this point.
if (onMessageDone != nullptr) return false; if (onMessageDone != nullptr) return false;
snarfBufferedLineBreak(); snarfBufferedLineBreak();
return !lineBreakBeforeNextHeader && leftover != nullptr; return !lineBreakBeforeNextHeader && leftover == nullptr;
} }
kj::Promise<kj::ArrayPtr<char>> readMessageHeaders() { kj::Promise<kj::ArrayPtr<char>> readMessageHeaders() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment