Index: src/WebRequestJsObject.cpp |
=================================================================== |
--- a/src/WebRequestJsObject.cpp |
+++ b/src/WebRequestJsObject.cpp |
@@ -34,17 +34,17 @@ namespace |
callback = arguments[2]; |
if (!callback->IsFunction()) |
throw std::runtime_error("Third argument to GET must be a function"); |
} |
void Run() |
{ |
- AdblockPlus::ServerResponse result = jsEngine.GetWebRequest().GET(url, headers); |
+ AdblockPlus::ServerResponse result = jsEngine.GetWebRequest()->GET(url, headers); |
AdblockPlus::JsEngine::Context context(jsEngine); |
AdblockPlus::JsValuePtr resultObject = jsEngine.NewObject(); |
resultObject->SetProperty("status", result.status); |
resultObject->SetProperty("responseStatus", result.responseStatus); |
resultObject->SetProperty("responseText", result.responseText); |