From b485aab7e71c1625cfc27e0f92c9509f42378458 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 13:19:16 +0200 Subject: Adding upstream version 1.45.3+dfsg. Signed-off-by: Daniel Baumann --- web/server/h2o/libh2o/t/assets/.htpasswd | 1 - web/server/h2o/libh2o/t/assets/doc_root/404.html | 1 - web/server/h2o/libh2o/t/assets/doc_root/alice.txt | 31 --- .../h2o/libh2o/t/assets/doc_root/alice2.txt.gz | Bin 645 -> 0 bytes web/server/h2o/libh2o/t/assets/doc_root/esi.html | 1 - .../h2o/libh2o/t/assets/doc_root/halfdome.jpg | Bin 481218 -> 0 bytes web/server/h2o/libh2o/t/assets/doc_root/hello.cgi | 13 -- web/server/h2o/libh2o/t/assets/doc_root/hello.php | 6 - web/server/h2o/libh2o/t/assets/doc_root/index.js | 1 - web/server/h2o/libh2o/t/assets/doc_root/index.txt | 1 - .../h2o/libh2o/t/assets/doc_root/index.txt.br | 2 - .../h2o/libh2o/t/assets/doc_root/index.txt.gz | Bin 26 -> 0 bytes .../h2o/libh2o/t/assets/doc_root/issues/951.php | 11 - .../h2o/libh2o/t/assets/doc_root/printenv.cgi | 9 - .../h2o/libh2o/t/assets/doc_root/subdir/index.txt | 1 - .../h2o/libh2o/t/assets/session_tickets.yaml | 12 -- web/server/h2o/libh2o/t/assets/upstream.psgi | 225 --------------------- 17 files changed, 315 deletions(-) delete mode 100644 web/server/h2o/libh2o/t/assets/.htpasswd delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/404.html delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/alice.txt delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/alice2.txt.gz delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/esi.html delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/halfdome.jpg delete mode 100755 web/server/h2o/libh2o/t/assets/doc_root/hello.cgi delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/hello.php delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/index.js delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/index.txt delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/index.txt.br delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/index.txt.gz delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/issues/951.php delete mode 100755 web/server/h2o/libh2o/t/assets/doc_root/printenv.cgi delete mode 100644 web/server/h2o/libh2o/t/assets/doc_root/subdir/index.txt delete mode 100644 web/server/h2o/libh2o/t/assets/session_tickets.yaml delete mode 100644 web/server/h2o/libh2o/t/assets/upstream.psgi (limited to 'web/server/h2o/libh2o/t/assets') diff --git a/web/server/h2o/libh2o/t/assets/.htpasswd b/web/server/h2o/libh2o/t/assets/.htpasswd deleted file mode 100644 index ae2071650..000000000 --- a/web/server/h2o/libh2o/t/assets/.htpasswd +++ /dev/null @@ -1 +0,0 @@ -dankogai:$apr1$UZu91fLT$LZuXFeu3wSYdgLY6Wez5m/ diff --git a/web/server/h2o/libh2o/t/assets/doc_root/404.html b/web/server/h2o/libh2o/t/assets/doc_root/404.html deleted file mode 100644 index 1990b40f9..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/404.html +++ /dev/null @@ -1 +0,0 @@ -hi I fixed ur webpage diff --git a/web/server/h2o/libh2o/t/assets/doc_root/alice.txt b/web/server/h2o/libh2o/t/assets/doc_root/alice.txt deleted file mode 100644 index adace8072..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/alice.txt +++ /dev/null @@ -1,31 +0,0 @@ -Alice was beginning to get very tired of sitting by her sister on the -bank, and of having nothing to do: once or twice she had peeped into the -book her sister was reading, but it had no pictures or conversations in -it, 'and what is the use of a book,' thought Alice 'without pictures or -conversations?' - -So she was considering in her own mind (as well as she could, for the -hot day made her feel very sleepy and stupid), whether the pleasure -of making a daisy-chain would be worth the trouble of getting up and -picking the daisies, when suddenly a White Rabbit with pink eyes ran -close by her. - -There was nothing so VERY remarkable in that; nor did Alice think it so -VERY much out of the way to hear the Rabbit say to itself, 'Oh dear! -Oh dear! I shall be late!' (when she thought it over afterwards, it -occurred to her that she ought to have wondered at this, but at the time -it all seemed quite natural); but when the Rabbit actually TOOK A WATCH -OUT OF ITS WAISTCOAT-POCKET, and looked at it, and then hurried on, -Alice started to her feet, for it flashed across her mind that she had -never before seen a rabbit with either a waistcoat-pocket, or a watch -to take out of it, and burning with curiosity, she ran across the field -after it, and fortunately was just in time to see it pop down a large -rabbit-hole under the hedge. - -In another moment down went Alice after it, never once considering how -in the world she was to get out again. - -The rabbit-hole went straight on like a tunnel for some way, and then -dipped suddenly down, so suddenly that Alice had not a moment to think -about stopping herself before she found herself falling down a very deep -well. diff --git a/web/server/h2o/libh2o/t/assets/doc_root/alice2.txt.gz b/web/server/h2o/libh2o/t/assets/doc_root/alice2.txt.gz deleted file mode 100644 index 42ff445da..000000000 Binary files a/web/server/h2o/libh2o/t/assets/doc_root/alice2.txt.gz and /dev/null differ diff --git a/web/server/h2o/libh2o/t/assets/doc_root/esi.html b/web/server/h2o/libh2o/t/assets/doc_root/esi.html deleted file mode 100644 index fea3eec6d..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/esi.html +++ /dev/null @@ -1 +0,0 @@ -Hello to the , from ! diff --git a/web/server/h2o/libh2o/t/assets/doc_root/halfdome.jpg b/web/server/h2o/libh2o/t/assets/doc_root/halfdome.jpg deleted file mode 100644 index 4e96991a0..000000000 Binary files a/web/server/h2o/libh2o/t/assets/doc_root/halfdome.jpg and /dev/null differ diff --git a/web/server/h2o/libh2o/t/assets/doc_root/hello.cgi b/web/server/h2o/libh2o/t/assets/doc_root/hello.cgi deleted file mode 100755 index 4401481bf..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/hello.cgi +++ /dev/null @@ -1,13 +0,0 @@ -#! /usr/bin/env perl - -use strict; -use warnings; -use CGI; - -my $q = CGI->new; - -print $q->header("text/plain; charset=utf-8"); -print "Hello ", $q->param("name") || "unknown"; - -close STDOUT; -print STDERR "hello.cgi is shutting down\n"; diff --git a/web/server/h2o/libh2o/t/assets/doc_root/hello.php b/web/server/h2o/libh2o/t/assets/doc_root/hello.php deleted file mode 100644 index 905beefec..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/hello.php +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/web/server/h2o/libh2o/t/assets/doc_root/index.js b/web/server/h2o/libh2o/t/assets/doc_root/index.js deleted file mode 100644 index 3254c9294..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/index.js +++ /dev/null @@ -1 +0,0 @@ -alert("hello"); diff --git a/web/server/h2o/libh2o/t/assets/doc_root/index.txt b/web/server/h2o/libh2o/t/assets/doc_root/index.txt deleted file mode 100644 index ce0136250..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/index.txt +++ /dev/null @@ -1 +0,0 @@ -hello diff --git a/web/server/h2o/libh2o/t/assets/doc_root/index.txt.br b/web/server/h2o/libh2o/t/assets/doc_root/index.txt.br deleted file mode 100644 index b931f4d7a..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/index.txt.br +++ /dev/null @@ -1,2 +0,0 @@ -‹€hello - \ No newline at end of file diff --git a/web/server/h2o/libh2o/t/assets/doc_root/index.txt.gz b/web/server/h2o/libh2o/t/assets/doc_root/index.txt.gz deleted file mode 100644 index c15976b94..000000000 Binary files a/web/server/h2o/libh2o/t/assets/doc_root/index.txt.gz and /dev/null differ diff --git a/web/server/h2o/libh2o/t/assets/doc_root/issues/951.php b/web/server/h2o/libh2o/t/assets/doc_root/issues/951.php deleted file mode 100644 index 871b47765..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/issues/951.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/web/server/h2o/libh2o/t/assets/doc_root/printenv.cgi b/web/server/h2o/libh2o/t/assets/doc_root/printenv.cgi deleted file mode 100755 index efe9b74c0..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/printenv.cgi +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/sh -exec ${H2O_PERL:-perl} -x $0 "$@" -#! perl - -print "content-type: text/plain; charset=utf-8\r\n\r\n"; - -for my $k (sort keys %ENV) { - print "$k:$ENV{$k}\n"; -} diff --git a/web/server/h2o/libh2o/t/assets/doc_root/subdir/index.txt b/web/server/h2o/libh2o/t/assets/doc_root/subdir/index.txt deleted file mode 100644 index 1fa86464d..000000000 --- a/web/server/h2o/libh2o/t/assets/doc_root/subdir/index.txt +++ /dev/null @@ -1 +0,0 @@ -subdir index diff --git a/web/server/h2o/libh2o/t/assets/session_tickets.yaml b/web/server/h2o/libh2o/t/assets/session_tickets.yaml deleted file mode 100644 index f97285299..000000000 --- a/web/server/h2o/libh2o/t/assets/session_tickets.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- name: a397b6b7fab929366203f16fc81ffbed - cipher: aes-128-cbc - hash: sha1 - key: f1ed89cde68763630e80d2be827cfb98e3fe72644f64315a4a8ad63769a3577ccec4dd13b20eaf8c008886e5458db10e658cf2a83f04403ac4e98035d2422a75806730eb4f2fee12faff954895bc65d1 - not_before: 1437092430 - not_after: 1437096029 -- name: e7e3c6980b1832bd5d23917572e8448f - cipher: aes-256-cbc - hash: sha256 - key: f6e071d993b05f77ce51cb0fe2e0e18c7200c2a7873a66008c8e1d75ae7b8e2af4fcb86fdf03a7f335632e668a8fe956c5bfe77a41412d269979634768999add6a84cafea41b6b2c47aaf1a514ca9d2a84f48d1f5f7018ff1740cf9b944b8fcf - not_before: 1437093330 - not_after: 1437096929 diff --git a/web/server/h2o/libh2o/t/assets/upstream.psgi b/web/server/h2o/libh2o/t/assets/upstream.psgi deleted file mode 100644 index 95427428a..000000000 --- a/web/server/h2o/libh2o/t/assets/upstream.psgi +++ /dev/null @@ -1,225 +0,0 @@ -use strict; -use warnings; -use Digest::SHA qw(sha1_base64); -use Plack::App::File; -use Plack::Builder; -use Plack::Request; -use Plack::TempBuffer; -use Time::HiRes qw(sleep); -use t::Util; - -my $force_chunked = $ENV{FORCE_CHUNKED} || 0; - -builder { - enable sub { - my $app = shift; - return sub { - my $env = shift; - my $query = Plack::Request->new($env)->query_parameters; - my $res = $app->($env); - Plack::Util::response_cb($res, sub { - my $res = shift; - if ($query->{"resp:status"}) { - $res->[0] = $query->get("resp:status"); - $query->remove("resp:status"); - } - push @{$res->[1]}, map { - my $n = $_; - +(substr($n, length "resp:") => $query->get($n)) - } grep { - $_ =~ /^resp:/ - } $query->keys; - $res; - }); - }; - }; - if ($force_chunked) { - enable sub { - my $app = shift; - return sub { - my $env = shift; - my $res = $app->($env); - Plack::Util::response_cb($res, sub { - my $res = shift; - my @headers; - for (my $i = 0; $i != @{$res->[1]}; $i += 2) { - push @headers, $res->[1][$i], $res->[1][$i + 1] - if lc $res->[1][$i] ne 'content-length'; - } - $res->[1] = \@headers; - return $res; - }); - }; - }; - } - mount "/" => Plack::App::File->new(root => DOC_ROOT)->to_app; - mount "/echo-query" => sub { - my $env = shift; - return [ - 200, - [ - 'content-type' => 'text/plain', - ], - [$env->{QUERY_STRING}], - ]; - }; - mount "/echo" => sub { - my $env = shift; - my $content = Plack::TempBuffer->new; - if ($env->{'psgi.input'}) { - my $buf; - while ($env->{'psgi.input'}->read($buf, 65536)) { - $content->print($buf); - } - } - return [ - 200, - [ - 'content-type' => 'text/plain', - 'content-length' => $content->size(), - ], - $content->rewind(), - ]; - }; - mount "/echo-headers" => sub { - my $env = shift; - return [ - 200, - [ - 'content-type' => 'text/plain', - ], - [ - join "\n", map { my $n = lc $_; $n=~ s/^http_//; $n =~ tr/_/-/; "$n: $env->{$_}" } sort grep { /^(HTTP_|HTTPS$)/ } keys %$env, - ] - ]; - }; - mount "/echo-server-header" => sub { - my $env = shift; - my @resph = [ 'content-type' => 'text/plain' ]; - if ($env->{HTTP_SERVER}) { - @resph = [ 'content-type' => 'text/plain', 'server' => $env->{HTTP_SERVER} ]; - } - return [ - 200, @resph, [ "Ok" ] - ]; - }; - mount "/streaming-body" => sub { - my $env = shift; - return sub { - my $responder = shift; - my $writer = $responder->([ 200, [ 'content-type' => 'text/plain' ] ]); - for my $i (1..30) { - sleep 0.1; - $writer->write($i); - } - $writer->close; - }; - }; - mount "/sleep-and-respond" => sub { - my $env = shift; - my $query = Plack::Request->new($env)->parameters; - sleep($query->{sleep} || 0); - return [ - 200, - [ - 'content-type' => 'text/plain; charset=utf-8', - ], - [ - 'hello world', - ], - ]; - }; - mount "/fixed-date-header" => sub { - my $env = shift; - return [ - 200, - [ - 'content-type' => 'text/plain', - 'date' => 'Thu, 01 Jan 1970 00:00:00 GMT', - ], - [] - ]; - }; - mount "/infinite-stream" => sub { - my $env = shift; - return sub { - my $responder = shift; - my $writer = $responder->([ 200, [ 'content-type' => 'text/plain' ] ]); - while ($writer->write("lorem ipsum dolor sit amet")) { - sleep 0.1; - } - $writer->close; - }; - }; - mount "/infinite-redirect" => sub { - my $env = shift; - return [ - 302, - [ - location => '/infinite-redirect', - ], - [], - ]; - }; - mount "/websocket" => sub { - my $env = shift; - my $key = $env->{HTTP_SEC_WEBSOCKET_KEY} - or return [400, [], ["no Sec-WebSocket-Key"]]; - $key .= "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; - my $accept_key = sha1_base64($key); - my $fh = $env->{"psgix.io"}; - print $fh join( - "\r\n", - "HTTP/1.1 101 Switching Protocols", - "Upgrade: websocket", - "Sec-Websocket-Accept: $accept_key", - "", - "", - ); - while (1) { - my $rfds = ''; - vec($rfds, fileno($fh), 1) = 1; - next if select($rfds, undef, undef, undef) <= 0; - $fh->sysread(my $data, 65536) <= 0 - and last; - while (length($data) != 0) { - my $wfds = ''; - vec($wfds, fileno($fh), 1) = 1; - next if select(undef, $wfds, undef, undef) <= 0; - my $wlen = $fh->syswrite($data); - last if $wlen <= 0; - $data = substr $data, $wlen; - } - } - close $fh; - exit 0; - }; - mount "/1xx-push" => sub { - my $env = shift; - my $fh = $env->{"psgix.io"}; - print $fh join( - "\r\n", - "HTTP/1.1 100 Continue", - "link: ; rel=preload", - "", - "", - ); - sleep 1.1; - [200, ["content-type" => "text/plain; charset=utf-8", "content-length" => 11], ["hello world"]]; - }; - mount "/push-attr" => sub { - my $env = shift; - my $query = Plack::Request->new($env)->query_parameters; - [200, ["content-type" => "text/plain; charset=utf-8", "content-length" => 11, "link" => "$query->{'pushes'}"], ["hello world"]]; - }; - mount "/no-content" => sub { - my $env = shift; - return [ - 204, - [ - 'content-type' => 'text/plain', - ], - [], - ]; - }; -}; -- cgit v1.2.3