mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-14 10:20:01 +00:00
Merge pull request #315 from To1ne/patch-1
Correct return values: PROCESSED or CALL_AGAIN
This commit is contained in:
commit
2cdf259940
1 file changed
+1
-1
+1
-1
@@ -23,7 +23,7 @@ static int index_html(struct mg_connection *conn) {
|
||||
}
|
||||
}
|
||||
|
||||
return n < sizeof(buf) ? 1 : 0;
|
||||
return n < sizeof(buf) ? MG_REQUEST_PROCESSED : MG_REQUEST_CALL_AGAIN;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
|
||||
Reference in new issue
Block a user