AmendHub

Download:

jcs

/

detritus

/

amendments

/

56

browser: Make page_consume_data call processor after each chunk


jcs made amendment 56 about 1 year ago
--- browser.c Thu Nov 21 16:42:39 2024 +++ browser.c Thu Dec 12 21:34:18 2024 @@ -132,7 +132,7 @@ browser_init(void) PADDING - (GetMBarHeight() * 2); height = MIN(height, 290); center_in_screen(width, height, true, &bounds); -bounds.top = (screenBits.bounds.bottom / 2); + //bounds.top = (screenBits.bounds.bottom / 2); snprintf(title, sizeof(title), "%s", PROGRAM_NAME); CtoPstr(title); @@ -1225,6 +1225,9 @@ page_consume_data(struct request *request, void *cooki } *buf = page->content + page->content_len; + + if (!page->handler->process((page_handle)cookie)) + return false; } return true;