Wrap req.getParameter, req.getUrl

This commit is contained in:
Alex Hultman 2019-01-14 12:44:29 +01:00
parent 647a6ef12c
commit 80bc15915b
4 changed files with 65 additions and 27 deletions

View file

@ -145,7 +145,7 @@ void uWS_App_get(const FunctionCallbackInfo<Value> &args) {
Local<Object> resObject = getResInstance<APP>();
resObject->SetAlignedPointerInInternalField(0, res);
Local<Object> reqObject = Local<Object>::New(isolate, reqTemplate)->Clone();
Local<Object> reqObject = HttpRequestWrapper::getReqInstance();//Local<Object>::New(isolate, reqTemplate)->Clone();
reqObject->SetAlignedPointerInInternalField(0, req);
Local<Value> argv[] = {resObject, reqObject};