https://bugs.kde.org/show_bug.cgi?id=507523

Christoph Cullmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kio/-/commit/b9fec2e
                   |                            |687bb8f7b885cd010daceb78a13
                   |                            |268b17

--- Comment #2 from Christoph Cullmann <[email protected]> ---
Git commit b9fec2e687bb8f7b885cd010daceb78a13268b17 by Christoph Cullmann, on
behalf of Robby Stephenson.
Committed on 15/08/2025 at 15:00.
Pushed by cullmann into branch 'master'.

Avoid "Content-Length: 0" header for empty GET and HEAD requests

The QBuffer pointer eventually gets sent as a QIODevice ptr to
QNetworkAccessManager::sendCustomRequest(...) and Qt then sends a
"Content-Length: 0" header for all requests even if the data itself is
empty. Per RFC9110, "A user agent SHOULD NOT send a Content-Length
header field when the request message does not contain content and the
method semantics do not anticipate such data." Semantically, HTTP_GET
and HTTP_HEAD shouldn't send the header when the data is empty.
Account for the Qt behavior here until behavior is modified.

M  +6    -1    src/kioworkers/http/http.cpp

https://invent.kde.org/frameworks/kio/-/commit/b9fec2e687bb8f7b885cd010daceb78a13268b17

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to