projects
/
Biblio-SIP2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1737c4d
)
remove LF from beginning ACS which return CR/LF
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 21 Dec 2009 16:12:41 +0000
(17:12 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 21 Dec 2009 16:12:41 +0000
(17:12 +0100)
lib/SIP2/SC.pm
patch
|
blob
|
history
diff --git
a/lib/SIP2/SC.pm
b/lib/SIP2/SC.pm
index
a068aab
..
7a28d65
100644
(file)
--- a/
lib/SIP2/SC.pm
+++ b/
lib/SIP2/SC.pm
@@
-43,6
+43,7
@@
sub message {
my $expect = substr($send,0,2) | 0x01;
my $in = <$sock>;
+ $in =~ s/^\n// && warn "removed LF from beginning";
$self->dump_message( "<<<< $ip ", $in );
die "expected $expect" unless substr($in,0,2) != $expect;