summaryrefslogtreecommitdiff
path: root/content/fetchers/httplib_kolibri.c
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-05-31 00:35:19 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-10-25 22:04:54 +0200
commit2a6495e8ef0029d2833313034022780660d7004a (patch)
tree05b24882265b1d209758924d376ceb44ab018835 /content/fetchers/httplib_kolibri.c
parent22919f5f01a3495a9b318e25d19ff9e0b3945e1d (diff)
downloadnetsurf-2a6495e8ef0029d2833313034022780660d7004a.tar.gz
netsurf-2a6495e8ef0029d2833313034022780660d7004a.tar.bz2
Release nightly for KolibriOS.
Check board.kolibrios.org forum thread for Netsurf for more details.
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;