]> git.ipfire.org Git - thirdparty/curl.git/commit
http: unfold response headers earlier
authorDaniel Stenberg <daniel@haxx.se>
Fri, 12 Dec 2025 15:36:08 +0000 (16:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 13 Dec 2025 22:02:18 +0000 (23:02 +0100)
commit67ae101666f1023263c475b88b266bc9b5e658c0
tree4b304e030b598d4eac0d49fdec484f6780106997
parent23f9d629f5802adc78ad3b1def147bd11dfd1fc5
http: unfold response headers earlier

Make the low-level HTTP header "builder" unfold headers so that
everything else can keep pretending folding does not exist.

This code no longer tries to reduce repeated leading whitespace (in the
continued folded header) to a single one. To avoid having to have a
special state for that.

Adjusted two test cases accordingly

Closes #19949
lib/headers.c
lib/http.c
lib/urldata.h
tests/data/test1274
tests/data/test1940