t5559: fix test failures with LIB_HTTPD_SSL
commit86190028a813786bb8f92a93ab07b44ac5f005a1
authorJeff King <peff@peff.net>
Thu, 23 Feb 2023 11:07:29 +0000 (23 06:07 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Feb 2023 21:01:17 +0000 (23 13:01 -0800)
treec0e2b34c34e437d0739abf8023ddc854bcc59054
parent3c14419c6b2747fa0c60d8d63e5ff59b58327de3
t5559: fix test failures with LIB_HTTPD_SSL

One test needs to be tweaked in order for t5559 to pass with SSL/TLS set
up. When we make our initial clone, we check that the curl trace of
requests is what we expected. But we need to fix two things:

  - along with ignoring "data" lines from the trace, we need to ignore
    "SSL data" lines

  - when TLS is used, the server is able to tell the client (via ALPN)
    that it supports HTTP/2 before the first HTTP request is made. So
    rather than request an upgrade using an HTTP header, it can just
    speak HTTP/2 immediately

With this patch, running:

  LIB_HTTPD_SSL=1 ./t5559-http-fetch-smart-http2.sh

works, whereas it did not before.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5551-http-fetch-smart.sh