summaryrefslogtreecommitdiff
path: root/src/XmlRpcRequestParserController.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/XmlRpcRequestParserController.cc')
-rw-r--r--src/XmlRpcRequestParserController.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/XmlRpcRequestParserController.cc b/src/XmlRpcRequestParserController.cc
index 6c9a543f..957766aa 100644
--- a/src/XmlRpcRequestParserController.cc
+++ b/src/XmlRpcRequestParserController.cc
@@ -92,6 +92,15 @@ XmlRpcRequestParserController::getCurrentFrameValue() const
return currentFrame_.value_;
}
+void XmlRpcRequestParserController::reset()
+{
+ while(!frameStack_.empty()) {
+ frameStack_.pop();
+ }
+ currentFrame_.reset();
+ methodName_.clear();
+}
+
} // namespace rpc
} // namespace aria2