From 54249cb5ae1aa6cfee9d0c00feddb3a79c81595c Mon Sep 17 00:00:00 2001 From: Jan Christoph Uhde Date: Wed, 24 Aug 2016 16:24:09 +0200 Subject: [PATCH] fix header access --- arangod/GeneralServer/VppCommTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/GeneralServer/VppCommTask.cpp b/arangod/GeneralServer/VppCommTask.cpp index 7de6ce34f9..7d8237a26f 100644 --- a/arangod/GeneralServer/VppCommTask.cpp +++ b/arangod/GeneralServer/VppCommTask.cpp @@ -398,7 +398,7 @@ bool VppCommTask::processRead() { << "got request:" << header.toJson(); int type = meta::underlyingValue(rest::RequestType::ILLEGAL); try { - type = header.get("type").getInt(); + type = header.at(1).getInt(); } catch (std::exception const& e) { throw std::runtime_error( std::string("Error during Parsing of VppHeader: ") + e.what());