3.26.0-rc3: file(DOWNLOAD) broken for HTTP/2
Broken on macOS Ventura and CentOS Linux and Windows 11 with CMake 3.26.0-rc3, but OK with CMake 3.25.2. The error log is distinct for each OS--I put macOS log at the bottom.
message(STATUS "CMake ${CMAKE_VERSION}: ${url}")
file(DOWNLOAD ${url} TLS_VERIFY on LOG log STATUS stat)
message(STATUS "${stat}")
list(GET stat 0 code)
if(NOT code EQUAL 0)
message("${log}")
endif()
% cmake -Durl=https://dropbox.com -P download.cmake
-- CMake 3.26.0-rc3: https://dropbox.com
-- 92;"Stream error in the HTTP/2 framing layer"
...
HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
Connection #0 to host www.dropbox.com left intact
Edited by Brad King