From 5defb3a36a3a9d71eaefd27a910b23b2fcd65c77 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Fri, 14 Jun 2013 14:30:52 +0200 Subject: HTTP internals: fix QHttpNetworkRequestPrivate::operator== We were not comparing all fields. Spotted-by: Richard J. Moore Change-Id: I5c1a773b00b64a26606c47ced292808696c9b4bb Reviewed-by: Richard J. Moore --- src/network/access/qhttpnetworkrequest.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/access/qhttpnetworkrequest.cpp b/src/network/access/qhttpnetworkrequest.cpp index f26559ce9b..d9f9b555d7 100644 --- a/src/network/access/qhttpnetworkrequest.cpp +++ b/src/network/access/qhttpnetworkrequest.cpp @@ -76,8 +76,14 @@ bool QHttpNetworkRequestPrivate::operator==(const QHttpNetworkRequestPrivate &ot { return QHttpNetworkHeaderPrivate::operator==(other) && (operation == other.operation) - && (ssl == other.ssl) + && (priority == other.priority) && (uploadByteDevice == other.uploadByteDevice) + && (autoDecompress == other.autoDecompress) + && (pipeliningAllowed == other.pipeliningAllowed) + // we do not clear the customVerb in setOperation + && (operation != QHttpNetworkRequest::Custom || (customVerb == other.customVerb)) + && (withCredentials == other.withCredentials) + && (ssl == other.ssl) && (preConnect == other.preConnect); } -- cgit v1.2.3