fixed some build errors
diff --git a/src/challenge-module/challenge-email.cpp b/src/challenge-module/challenge-email.cpp
index db069c8..4ec3c6f 100644
--- a/src/challenge-module/challenge-email.cpp
+++ b/src/challenge-module/challenge-email.cpp
@@ -50,6 +50,7 @@
void
ChallengeEmail::handleChallengeRequest(const Block& params, CertificateRequest& request)
{
+ params.parse();
auto currentTime = time::system_clock::now();
if (request.m_challengeStatus == "") {
// for the first time, init the challenge
@@ -200,7 +201,7 @@
else {
_LOG_ERROR("Client's status and challenge status are wrong");
}
- request.parse();
+ request.encode();
return request;
}