1
0
Fork 0

fix header access

This commit is contained in:
Jan Christoph Uhde 2016-08-24 16:24:09 +02:00
parent ca433a92fd
commit 54249cb5ae
1 changed files with 1 additions and 1 deletions

View File

@ -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());