From ba36a38a6c4be38fe4e09cc95a40b58a48daed79 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 8 Apr 2022 22:48:00 +0900 Subject: Allow empty dist name in bencode which is needed for hybrid torrent --- src/ValueBaseStructParserStateMachine.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ValueBaseStructParserStateMachine.h') diff --git a/src/ValueBaseStructParserStateMachine.h b/src/ValueBaseStructParserStateMachine.h index a049de3a..c309cfb6 100644 --- a/src/ValueBaseStructParserStateMachine.h +++ b/src/ValueBaseStructParserStateMachine.h @@ -106,6 +106,8 @@ public: void pushBoolState(); void pushNullState(); + void setAllowEmptyMemberName(bool b); + private: std::unique_ptr ctrl_; std::stack stateStack_; -- cgit