Index: src/WebRequestJsObject.cpp |
=================================================================== |
--- a/src/WebRequestJsObject.cpp |
+++ b/src/WebRequestJsObject.cpp |
@@ -79,17 +79,17 @@ namespace |
AdblockPlus::JsValuePtr headersObject = jsEngine->NewObject(); |
for (AdblockPlus::HeaderList::iterator it = result.responseHeaders.begin(); |
it != result.responseHeaders.end(); ++it) |
{ |
headersObject->SetProperty(it->first, it->second); |
} |
resultObject->SetProperty("responseHeaders", headersObject); |
- AdblockPlus::JsValueList params; |
+ AdblockPlus::JsConstValueList params; |
params.push_back(resultObject); |
callback->Call(params); |
} |
private: |
AdblockPlus::JsEnginePtr jsEngine; |
std::string url; |
AdblockPlus::HeaderList headers; |