diff --git a/count-hosts.js b/count-hosts.js index e336476c67..2b333e78fa 100644 --- a/count-hosts.js +++ b/count-hosts.js @@ -29,7 +29,6 @@ function Initialize() { } function Process(request) { - print("hello "); if (options.verbose) { log("Processing " + request.host + request.path + " from " + request.referrer + "@" + request.userAgent); diff --git a/server.cc b/server.cc index 60170be62d..197fc2b6f2 100644 --- a/server.cc +++ b/server.cc @@ -6,6 +6,7 @@ extern "C" { #include "http_request.h" #include "js_http_request_processor.h" +#include #include #include #include @@ -38,7 +39,12 @@ void on_headers_complete { HttpRequest *request = static_cast (req->data); - processor->Process(request); + bool r = processor->Process(request); + if(r) { + printf("successful request\n"); + } else { + printf("unsuccesful request\n"); + } } void on_request_complete