mirror of https://gitee.com/bigwinds/arangodb
don't execute dynamic cast if not required
This commit is contained in:
parent
fe21ab1bbe
commit
fd9134e22b
|
@ -783,7 +783,7 @@ static void ResponseV8ToCpp(v8::Isolate* isolate, TRI_v8_global_t const* v8g,
|
|||
// .........................................................................
|
||||
// cookies
|
||||
// .........................................................................
|
||||
HttpResponse* httpResponse = dynamic_cast<HttpResponse*>(response);
|
||||
|
||||
TRI_GET_GLOBAL_STRING(CookiesKey);
|
||||
if (res->Has(CookiesKey)) {
|
||||
v8::Handle<v8::Value> val = res->Get(CookiesKey);
|
||||
|
@ -791,6 +791,7 @@ static void ResponseV8ToCpp(v8::Isolate* isolate, TRI_v8_global_t const* v8g,
|
|||
|
||||
switch (response->transportType()) {
|
||||
case Endpoint::TransportType::HTTP: {
|
||||
HttpResponse* httpResponse = dynamic_cast<HttpResponse*>(response);
|
||||
if (v8Cookies->IsArray()) {
|
||||
v8::Handle<v8::Array> v8Array = v8Cookies.As<v8::Array>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue