From: Alexander Trufanov Date: Tue, 21 Mar 2017 13:51:32 +0000 (+0300) Subject: keep query encoding when HTTP Proxy is used X-Git-Tag: archive/raspbian/5.97.0-1+rpi1~1^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7b8855b4cf6a1811b2ef9ae585d53098a2a61e19;p=kio.git keep query encoding when HTTP Proxy is used REVIEW:130040 Otherwise some '%XX' parts of url query might be converted back to ASCII and this cause problems while passing info_hash to torrent trackers. Detailed description is in review. Gbp-Pq: Name keep-query-encoding-when-HTTP-Proxy-is-used.patch --- diff --git a/src/ioslaves/http/http.cpp b/src/ioslaves/http/http.cpp index 62eb09d..0ea501d 100644 --- a/src/ioslaves/http/http.cpp +++ b/src/ioslaves/http/http.cpp @@ -2322,7 +2322,7 @@ QString HTTPProtocol::formatRequestUri() const u.setPort(m_request.url.port()); u.setPath(m_request.url.path(QUrl::FullyEncoded)); u.setQuery(m_request.url.query(QUrl::FullyEncoded)); - return u.toString(); + return u.toString(QUrl::FullyEncoded); } else { QString result = m_request.url.path(QUrl::FullyEncoded); if (m_request.url.hasQuery()) {