summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs/qinputdialog.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2025-09-16 17:08:17 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2025-09-17 19:39:30 +0200
commitcdd0b0b860b632b899091e63bcecf02446b94662 (patch)
treebdec46ad2d754a99dbf44bbb1967a1ce2fbcdc67 /src/widgets/dialogs/qinputdialog.cpp
parent8f4430a2121a1961a991b79cd97a1ef13d47ea96 (diff)
Http: Improve error string when there is no reason phrase
The reason phrase is optional, and in http2+ it is not included at all. So when we generate the error string as 'server replied: %2' it ends up being unnatural and ugly, and certainly not fit for display. To improve that, whenever there is no reason phrase, we instead generate the string like 'server replied with status code %2' and output the status code instead, which is included. Fixes: QTBUG-140126 Pick-to: 6.10 6.9 6.8 Change-Id: Ife3ed920f6e1a15d83e5cd5dc9b0568fb195b642 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Mate Barany <mate.barany@qt.io>
Diffstat (limited to 'src/widgets/dialogs/qinputdialog.cpp')
0 files changed, 0 insertions, 0 deletions