Permalink
Browse files

ruby 1.9 compat in smtpserver (fixes #349)

  • Loading branch information...
1 parent 16c2719 commit c76f6f69c5b56527035ddf1b3578b313d6529f7b @tmm1 tmm1 committed Feb 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/em/protocols/smtpserver.rb
@@ -541,7 +541,7 @@ def process_data_line ln
@state.delete :data
else
# slice off leading . if any
- ln.slice!(0...1) if ln[0] == 46
+ ln.slice!(0...1) if ln[0] == ?.
@databuffer << ln
if @databuffer.length > @@parms[:chunksize]
receive_data_chunk @databuffer

0 comments on commit c76f6f6

Please sign in to comment.