Skip to content

Commit 68be774

Browse files
provegardperlun
authored andcommitted
SchemeHandlerWrapper bug fix: Must return false from ReadResponse when response is complete.
1 parent 85f8e79 commit 68be774

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CefSharp/SchemeHandlerWrapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ namespace CefSharp
104104
pin_ptr<Byte> src = &buffer[0];
105105
memcpy(data_out, static_cast<void*>(src), ret);
106106
bytes_read = ret;
107-
has_data = true;
107+
// must return false when the response is complete
108+
has_data = ret > 0;
108109
}
109110

110111
return has_data;

0 commit comments

Comments
 (0)