Commit fcedf30b authored by fred's avatar fred
Browse files

zerogw payload api, send response before forward payload

parent 75c84e32
......@@ -72,8 +72,8 @@ Routing:
- !Header X-workflow-uuid
- !Header X-payload-filename
- !Header X-payload-type
- !Header X-payload-action
- !Header X-payload-mime
- !Header X-payload-action
- !Body ~
timeout: 2
retry: !RetryFirst
......
......@@ -317,6 +317,7 @@ void Api_payload::receive_http_payload()
tmp = QString::fromAscii((char*)request.data(), request.size());
payload_builder.append("data", tmp.toStdString());
}
// headers from 0 to 9
else tmp = QString::fromAscii((char*)request.data(), request.size());
zerogw[key] = tmp;
......@@ -459,7 +460,6 @@ void Api_payload::receive_http_payload()
"timestamp" << timestamp.toTime_t());
emit forward_payload(l_payload);
}
// send response to client
......@@ -472,6 +472,8 @@ void Api_payload::receive_http_payload()
}
counter++;
}
emit forward_payload(l_payload);
qDebug() << "ZEROGW : " << zerogw;
check_http_data->setEnabled(true);
m_mutex->unlock();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment