Changeset 8204 in ntrip for trunk/BNC/src/bncnetqueryudp.cpp


Ignore:
Timestamp:
Dec 11, 2017, 3:00:40 PM (6 years ago)
Author:
wiese
Message:

CHANGE: #105 toAscii deprecated

File:
1 edited

Legend:

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

    r6787 r8204  
    124124    // Send Request
    125125    // ------------
    126     QString uName = QUrl::fromPercentEncoding(_url.userName().toAscii());
    127     QString passW = QUrl::fromPercentEncoding(_url.password().toAscii());
     126    QString uName = QUrl::fromPercentEncoding(_url.userName().toLatin1());
     127    QString passW = QUrl::fromPercentEncoding(_url.password().toLatin1());
    128128    QByteArray userAndPwd;
    129129   
    130130    if(!uName.isEmpty() || !passW.isEmpty()) {
    131       userAndPwd = "Authorization: Basic " + (uName.toAscii() + ":" +
    132       passW.toAscii()).toBase64() + "\r\n";
     131      userAndPwd = "Authorization: Basic " + (uName.toLatin1() + ":" +
     132      passW.toLatin1()).toBase64() + "\r\n";
    133133    }
    134134   
    135     QByteArray reqStr = "GET " + _url.path().toAscii() + " HTTP/1.1\r\n"
    136                       + "Host: " + _url.host().toAscii() + "\r\n"
     135    QByteArray reqStr = "GET " + _url.path().toLatin1() + " HTTP/1.1\r\n"
     136                      + "Host: " + _url.host().toLatin1() + "\r\n"
    137137                      + "Ntrip-Version: Ntrip/2.0\r\n"
    138138                      + "User-Agent: NTRIP BNC/" BNCVERSION " (" BNC_OS ")\r\n";
Note: See TracChangeset for help on using the changeset viewer.