VirtualBox

Changeset 43733 in vbox


Ignore:
Timestamp:
Oct 24, 2012 5:47:43 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: New version notifier which uses cURL will now again send user-

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp

    r43710 r43733  
    6868                           proxyManager.proxyHost().toAscii().constData(),
    6969                           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);
    7089        }
    7190
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette