qt6-bb10/tests/auto/network
Marc Mutz 5677c111cb QFormData(Part)Builder: simplify filename formatting
We don't need the bodyName member, because it's the same as
originalBodyName, just encoded, and we can delay the encoding to
build() time.

This is not worse than the old code, since we anyway toString() the
QAnyStringView unconditionally.

So we don't need to visit the QASV and implement RFC2232 encoding for
all three view types, we can just use the QString version, after
toString().

This not only has the advantage of less code and not storing duplicate
data, but we now also encode u8"ä.txt" the same as "ä.txt"_L1 and
u"ä.txt", ie. using latin1, as required by Postel's Law, and not as
UTF-8, as the old code did.

Change-Id: If82a33a1cd09b859b3a4450a60083b1d3aedf7bc
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2024-05-30 20:52:42 +02:00
..
access QFormData(Part)Builder: simplify filename formatting 2024-05-30 20:52:42 +02:00
kernel Android: prefer wlan IPv6 connection over other interfaces 2024-05-23 10:26:20 +03:00
selftest Change license for tests files 2024-02-04 09:56:42 +01:00
socket Improve test compilation setup with QtLite configuration 2024-05-10 09:04:44 +00:00
ssl Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00