Changeset 846 for trunk/src/network/access/qnetworkrequest.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/network/access/qnetworkrequest.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/network/access/qnetworkrequest.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 106 106 /*! 107 107 \enum QNetworkRequest::Attribute 108 108 \since 4.7 109 109 110 Attribute codes for the QNetworkRequest and QNetworkReply. 110 111 … … 175 176 header must be set. 176 177 177 \value HttpPipeliningAllowedAttribute178 \value HttpPipeliningAllowedAttribute 178 179 Requests only, type: QVariant::Bool (default: false) 179 180 Indicates whether the QNetworkAccessManager code is 180 181 allowed to use HTTP pipelining with this request. 181 182 182 \value HttpPipeliningWasUsedAttribute183 \value HttpPipeliningWasUsedAttribute 183 184 Replies only, type: QVariant::Bool 184 185 Indicates whether the HTTP pipelining was used for receiving 185 186 this reply. 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 186 228 187 229 \value User … … 217 259 */ 218 260 261 262 263 264 265 266 267 268 269 270 271 272 219 273 class QNetworkRequestPrivate: public QSharedData, public QNetworkHeadersPrivate 220 274 { 221 275 public: 222 276 inline QNetworkRequestPrivate() 277 223 278 #ifndef QT_NO_OPENSSL 224 :sslConfiguration(0)279 sslConfiguration(0) 225 280 #endif 226 281 { qRegisterMetaType<QNetworkRequest>(); } … … 237 292 { 238 293 url = other.url; 294 239 295 240 296 #ifndef QT_NO_OPENSSL … … 248 304 { 249 305 return url == other.url && 306 250 307 rawHeaders == other.rawHeaders && 251 308 attributes == other.attributes; … … 254 311 255 312 QUrl url; 313 256 314 #ifndef QT_NO_OPENSSL 257 315 mutable QSslConfiguration *sslConfiguration; … … 517 575 { 518 576 return d->originatingObject.data(); 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 519 616 } 520 617 … … 803 900 QNetworkRequest::KnownHeaders parsedKey = parseHeaderName(key); 804 901 if (parsedKey != QNetworkRequest::KnownHeaders(-1)) { 805 if (value.isNull()) 902 if (value.isNull()) 806 903 cookedHeaders.remove(parsedKey); 807 else 904 } else if (parsedKey == QNetworkRequest::ContentLengthHeader 905 && cookedHeaders.contains(QNetworkRequest::ContentLengthHeader)) { 906 // Only set the cooked header "Content-Length" once. 907 // See bug QTBUG-15311 908 } else { 808 909 cookedHeaders.insert(parsedKey, parseHeaderValue(parsedKey, value)); 910 911 809 912 } 810 913 }
Note:
See TracChangeset
for help on using the changeset viewer.
