Changeset 43733 in vbox
- Timestamp:
- Oct 24, 2012 5:47:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp
r43710 r43733 68 68 proxyManager.proxyHost().toAscii().constData(), 69 69 proxyManager.proxyPort().toUInt(), 0, 0); 70 } 71 72 /* Do we have raw headers? */ 73 QList<QByteArray> rawHeaders = m_request.rawHeaderList(); 74 if (!rawHeaders.isEmpty()) 75 { 76 /* We should format them first: */ 77 QVector<QByteArray> formattedHeaderVector; 78 QVector<const char*> formattedHeaderPointerVector; 79 /* For each existing raw-header: */ 80 foreach (const QByteArray &rawHeader, rawHeaders) 81 { 82 /* Prepare formatted representation: */ 83 QString strFormattedString = QString("%1: %2").arg(QString(rawHeader), QString(m_request.rawHeader(rawHeader))); 84 formattedHeaderVector << strFormattedString.toAscii(); 85 formattedHeaderPointerVector << formattedHeaderVector.last().constData(); 86 } 87 const char **ppFormattedHeaders = formattedHeaderPointerVector.data(); 88 RTHttpSetHeaders(hHttp, formattedHeaderPointerVector.size(), ppFormattedHeaders); 70 89 } 71 90
Note:
See TracChangeset
for help on using the changeset viewer.