Mercurial > hg > nginx-tests
diff ssl_stapling.t @ 1636:2d371452658c
Tests: fixed serving binary OCSP responses on win32.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 24 Dec 2020 19:17:05 +0300 |
parents | dbce8fb5f5f8 |
children | af47a0b348a5 |
line wrap: on
line diff
--- a/ssl_stapling.t +++ b/ssl_stapling.t @@ -399,7 +399,14 @@ Content-Type: application/ocsp-response EOF - print $client $headers . $t->read_file("$resp.der"); + local $/; + open my $fh, '<', "$d/$resp.der" + or die "Can't open $resp.der: $!"; + binmode $fh; + my $content = <$fh>; + close $fh; + + print $client $headers . $content; } }