mirror of https://gitee.com/bigwinds/arangodb
fix header access
This commit is contained in:
parent
ca433a92fd
commit
54249cb5ae
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue