summaryrefslogtreecommitdiff
path: root/src/ValueBaseStructParserStateMachine.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2022-04-08 22:48:00 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2022-04-08 22:54:11 +0900
commitba36a38a6c4be38fe4e09cc95a40b58a48daed79 (patch)
tree6110994e4a9f28608da92e41b235990257ba13eb /src/ValueBaseStructParserStateMachine.cc
parent37a7419fed8e6035a77c30bef456e36cbfd60245 (diff)
Allow empty dist name in bencode which is needed for hybrid torrent
Diffstat (limited to 'src/ValueBaseStructParserStateMachine.cc')
-rw-r--r--src/ValueBaseStructParserStateMachine.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ValueBaseStructParserStateMachine.cc b/src/ValueBaseStructParserStateMachine.cc
index b026758a..caf6296e 100644
--- a/src/ValueBaseStructParserStateMachine.cc
+++ b/src/ValueBaseStructParserStateMachine.cc
@@ -213,4 +213,9 @@ void ValueBaseStructParserStateMachine::pushNullState()
stateStack_.push(nullState);
}
+void ValueBaseStructParserStateMachine::setAllowEmptyMemberName(bool b)
+{
+ ctrl_->setAllowEmptyMemberName(b);
+}
+
} // namespace aria2