tst_QHttpServerMultiThreaded: compile with QT_NO_CAST_FROM_BYTEARRAY


The buffer is always of size contentLength, so use the QByteArray/View
overload of QString::fromUtf8() and don't pass the length manually.

Amends 362d40911887edf5fb8c23cebfed6f62e7c88c2f (6.8).

Pick-to: 6.11 6.10 6.8
Task-number: QTBUG-133234
Change-Id: If41da5b68bec7108b4d63408e1f869d6ef0e7863
Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io>
commit279062d8a017ab7e3748f4079c4fb5b48f5e94f3
parenta5ad0a2ca6af01ce4e3b238c95b2ccbe1fabeff8
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 26 Mar 2026 07:58:27 +0100