Index: src/WebRequestJsObject.cpp |
=================================================================== |
--- a/src/WebRequestJsObject.cpp |
+++ b/src/WebRequestJsObject.cpp |
@@ -71,16 +71,17 @@ namespace |
void Run() |
{ |
AdblockPlus::ServerResponse result = webRequest->GET(url, headers); |
const v8::Locker locker(isolate); |
const v8::HandleScope handleScope; |
const v8::Context::Scope contextScope(context); |
v8::Local<v8::Object> resultObject = v8::Object::New(); |
+ resultObject->Set(v8::String::New("status"), v8::Number::New(result.status)); |
resultObject->Set(v8::String::New("responseStatus"), v8::Integer::New(result.responseStatus)); |
resultObject->Set(v8::String::New("responseText"), toV8String(result.responseText)); |
v8::Local<v8::Object> headersObject = v8::Object::New(); |
for (AdblockPlus::HeadersList::iterator it = result.responseHeaders.begin(); |
it != result.responseHeaders.end(); ++it) |
{ |
headersObject->Set(toV8String(it->first), toV8String(it->second)); |