Permalink
Browse files

Added comments

  • Loading branch information...
1 parent 904dc5e commit 0efa662811fe422c803a8e41700f58c79b3cb07d @teodozjan teodozjan committed Mar 22, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/HTTP/Easy.pm6
View
@@ -53,9 +53,14 @@ method run
{
if $.debug { message("Client connection received."); }
self.on-connection;
+
my $preamble = $!connection.get;
- say "It is cut here\n ------->", $preamble, "\n<---------";
+ ## This is temporary workaound
+ # Second get is needed looks like bug in rakudo.
+ # We just go along with that
+ say "It is cut here\n------->\n", $preamble, "\n<---------";
$preamble ~= $!connection.get;
+ ## End of work around.
my @headers = $preamble.split("\r\n");
my $request = @headers.shift;
unless defined $request

0 comments on commit 0efa662

Please sign in to comment.