Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
fixes for supply stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-o committed Nov 4, 2016
1 parent bf96344 commit 77acd1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.precomp

2 changes: 1 addition & 1 deletion lib/HTTP/Server/Threaded.pm6
Expand Up @@ -49,7 +49,7 @@ class HTTP::Server::Threaded does HTTP::Server {

method !conn {
start {
$!connections.tap( -> $conn {
$!connections.Supply.tap( -> $conn {
my Buf $data .=new;
my Blob $sep = "\r\n\r\n".encode;
my ($stop, $buf);
Expand Down
5 changes: 3 additions & 2 deletions lib/HTTP/Server/Threaded/Response.pm6
Expand Up @@ -14,8 +14,9 @@ class HTTP::Server::Threaded::Response does HTTP::Response {
my @pairs = %.headers.keys.map({
"$_: {$.headers{$_}}"
});
await $.connection.print("HTTP/1.1 $.status {%!statuscodes{$.status}}\r\n");
await $.connection.print(@pairs.join("\r\n") ~ "\r\n\r\n");
$.connection.print("HTTP/1.1 $.status {%!statuscodes{$.status}}\r\n");
$.connection.print(@pairs.join("\r\n") ~ "\r\n\r\n");
CATCH { default { $_.say; } };
};
}

Expand Down

0 comments on commit 77acd1b

Please sign in to comment.