mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
add some printfs..
This commit is contained in:
1 parent
7b7ceea4ec
commit
b518ed9db2
2 files changed
+7
-2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -6,6 +6,7 @@ extern "C" {
|
||||
#include "http_request.h"
|
||||
#include "js_http_request_processor.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <string>
|
||||
#include <map>
|
||||
@@ -38,7 +39,12 @@ void on_headers_complete
|
||||
{
|
||||
HttpRequest *request = static_cast<HttpRequest*> (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
|
||||
|
||||
Reference in new issue
Block a user