Skip to content

Commit 965f9a3

Browse files
committed
🐛 Fix typo in rarely used parser code
I believe this code is only executed when there is something strange (generally invalid) in the server's response. Some of the newly added invalid BODYSTRUCTURE examples triggered this bug.
1 parent cb52a2d commit 965f9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/imap/response_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def body_type_1part
643643
choice = m&.named_captures&.compact&.keys&.first
644644
# In practice, the following line should never be used. But the ABNF
645645
# *does* allow literals, and this will handle them.
646-
choice ||= lookahead_case_insensitive_string!
646+
choice ||= lookahead_case_insensitive__string!
647647
case choice
648648
when "BASIC" then body_type_basic # => BodyTypeBasic
649649
when "MESSAGE" then body_type_msg # => BodyTypeMessage | BodyTypeBasic

0 commit comments

Comments
 (0)