summaryrefslogtreecommitdiff
path: root/content/fetchers/httplib_kolibri.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetchers/httplib_kolibri.c')
-rw-r--r--content/fetchers/httplib_kolibri.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/fetchers/httplib_kolibri.c b/content/fetchers/httplib_kolibri.c
index d3f268983..d5a52c30d 100644
--- a/content/fetchers/httplib_kolibri.c
+++ b/content/fetchers/httplib_kolibri.c
@@ -76,10 +76,14 @@ bool init_fetcher(lwc_string *scheme) {
assert(lwc_string_isequal(scheme, corestring_lwc_http, &supported_scheme) == lwc_error_ok);
LOG("Initializing http library!");
- if(kolibri_http_init() == 0)
+ debug_board_printf("---- [NETSURF] Trying to initialize http library.\n");
+ if(kolibri_http_init() == 0) {
LOG("[INFO] Loaded http.obj library successfully.\n");
+ debug_board_printf("---- [NETSURF] Successfully initialized http library.\n");
+ }
else {
LOG("[ERROR] Could not load http.obj library.\n");
+ debug_board_printf("---- [NETSURF] Could not initialize http library. Exiting.\n");
assert(0 && 1);
return false;
}
@@ -151,6 +155,7 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
bool start_fetch(void *httpf) {
LOG("-=- start_fetch : httpf: 0x%x", httpf);
+
add_to_poll((struct httpfetcher *) httpf);
return true;
}
@@ -308,6 +313,7 @@ void poll_fetch(lwc_string *scheme) {
}
fetch_msg msg;
+
msg.type = FETCH_FINISHED;
msg.data.header_or_data.buf = NULL;
msg.data.header_or_data.len = 0;