mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-08-19 16:45:03 +00:00
The four ExpectTokenTest cases landed inside the #ifndef _WIN32 that guards the 10 GiB content-provider test below them, so Windows never compiled them and the green Windows jobs said nothing about the fix. Nothing in them is POSIX-only -- they use the same helpers as ConnectionTokenTest, which sits outside any guard -- so move them above the guard. probe_expect() re-implemented send_request(), down to the create_client_socket argument list. Call send_request() instead, with Connection: close so its read loop ends at the response rather than idling to the read timeout; the Connection check runs before the Expect block, so it does not disturb what is under test. Move the new Content-Encoding case below its siblings. Appending it to the tail of the comment block left the "whole token" paragraph reading as documentation for a test about repeated field lines. The paragraph above it had been detached from KnownEncodingWithoutSupportIsReported the same way one commit earlier; put that one back too.