summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/content/fetch.c b/content/fetch.c
index bfc84ea6a..666b9e30e 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -54,22 +54,23 @@
#include "content/fetchers.h"
#include "content/fetchers/resource.h"
#include "content/fetchers/about.h"
-#if defined(_TARGET_IS_KOLIBRIOS)
-#include "content/fetchers/http_kolibri.h"
-#else
+#ifdef WITH_CURL
#include "content/fetchers/curl.h"
#endif
+#if defined(_TARGET_IS_KOLIBRIOS)
+#include "content/fetchers/httplib_kolibri.h"
+#endif
#include "content/fetchers/data.h"
#include "content/fetchers/file.h"
#include "javascript/fetcher.h"
#include "content/urldb.h"
/* Define this to turn on verbose fetch logging */
-#undef DEBUG_FETCH_VERBOSE
+#define DEBUG_FETCH_VERBOSE
/** Verbose fetcher logging */
#ifdef DEBUG_FETCH_VERBOSE
-#define FETCH_LOG(x...) LOG(x...)
+#define FETCH_LOG(x...) debug_board_printf(x); debug_board_printf("\n");
#else
#define FETCH_LOG(x...)
#endif
@@ -299,7 +300,12 @@ nserror fetcher_init(void)
return ret;
}
#endif
-
+#ifdef _TARGET_IS_KOLIBRIOS
+ ret = fetch_httplib_kolibri_register();
+ if (ret != NSERROR_OK) {
+ return ret;
+ }
+#endif
ret = fetch_data_register();
if (ret != NSERROR_OK) {
return ret;