Changeset 7612 in ntrip for trunk


Ignore:
Timestamp:
Dec 7, 2015, 5:54:16 PM (9 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncnetqueryv2.cpp

    r7513 r7612  
    1111 * Created:    27-Dec-2008
    1212 *
    13  * Changes:   
     13 * Changes:
    1414 *
    1515 * -----------------------------------------------------------------------*/
     
    2828  _secure    = secure;
    2929  _manager   = new QNetworkAccessManager(this);
    30   connect(_manager, SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, 
     30  connect(_manager, SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&,
    3131                                                       QAuthenticator*)),
    32           this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&, 
     32          this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&,
    3333                                                     QAuthenticator*)));
    3434  _reply     = 0;
     
    3838
    3939  bncSettings settings;
    40   _sslIgnoreErrors = 
     40  _sslIgnoreErrors =
    4141     (Qt::CheckState(settings.value("sslIgnoreErrors").toInt()) == Qt::Checked);
    4242
     
    7272    _status = error;
    7373    emit newMessage(_url.path().toAscii().replace(0,1,"")  +
    74                     ": NetQueryV2: server replied: " + 
     74                    ": NetQueryV2: server replied: " +
    7575                    _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(),
    7676                    true);
     
    8181}
    8282
    83 // 
    84 ////////////////////////////////////////////////////////////////////////////
    85 void bncNetQueryV2::slotProxyAuthenticationRequired(const QNetworkProxy&, 
     83//
     84////////////////////////////////////////////////////////////////////////////
     85void bncNetQueryV2::slotProxyAuthenticationRequired(const QNetworkProxy&,
    8686                                                    QAuthenticator*) {
    8787  emit newMessage("slotProxyAuthenticationRequired", true);
     
    145145    QString uName = QUrl::fromPercentEncoding(_url.userName().toAscii());
    146146    QString passW = QUrl::fromPercentEncoding(_url.password().toAscii());
    147     request.setRawHeader("Authorization", "Basic " + 
     147    request.setRawHeader("Authorization", "Basic " +
    148148                         (uName + ":" + passW).toAscii().toBase64());
    149   } 
     149  }
    150150  if (!gga.isEmpty()) {
    151151    request.setRawHeader("Ntrip-GGA", gga);
     
    153153  request.setRawHeader("Connection"   , "close");
    154154
    155   delete _reply;
    156155  _reply = _manager->get(request);
    157156
     
    207206}
    208207
    209 // TSL/SSL 
     208// TSL/SSL
    210209////////////////////////////////////////////////////////////////////////////
    211210void bncNetQueryV2::slotSslErrors(QList<QSslError> errors) {
Note: See TracChangeset for help on using the changeset viewer.