Changeset 8203 in ntrip for trunk/BNC/src/bncnetqueryv2.cpp
- Timestamp:
- Dec 11, 2017, 2:42:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncnetqueryv2.cpp
r7851 r8203 76 76 if (_reply && _reply->error() != QNetworkReply::NoError) { 77 77 _status = error; 78 emit newMessage(_url.path().to Ascii().replace(0,1,"") +78 emit newMessage(_url.path().toLatin1().replace(0,1,"") + 79 79 ": NetQueryV2: server replied: " + 80 80 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(), … … 144 144 request.setSslConfiguration(sslConfig); 145 145 request.setUrl(_url); 146 request.setRawHeader("Host" , _url.host().to Ascii());146 request.setRawHeader("Host" , _url.host().toLatin1()); 147 147 request.setRawHeader("Ntrip-Version", "Ntrip/2.0"); 148 request.setRawHeader("User-Agent" , "NTRIP BNC/" BNCVERSION" ("BNC_OS")");148 request.setRawHeader("User-Agent" , "NTRIP BNC/" BNCVERSION " (" BNC_OS ")"); 149 149 if (!_url.userName().isEmpty()) { 150 QString uName = QUrl::fromPercentEncoding(_url.userName().to Ascii());151 QString passW = QUrl::fromPercentEncoding(_url.password().to Ascii());150 QString uName = QUrl::fromPercentEncoding(_url.userName().toLatin1()); 151 QString passW = QUrl::fromPercentEncoding(_url.password().toLatin1()); 152 152 request.setRawHeader("Authorization", "Basic " + 153 (uName + ":" + passW).to Ascii().toBase64());153 (uName + ":" + passW).toLatin1().toBase64()); 154 154 } 155 155 if (!gga.isEmpty()) { … … 226 226 msg += QString("Server Certificate Issued by:\n" 227 227 "%1\n%2\nCannot be verified\n") 228 #if QT_VERSION >= 0x050000 229 .arg(cert.issuerInfo(QSslCertificate::OrganizationalUnitName).at(0)) 230 .arg(cert.issuerInfo(QSslCertificate::Organization).at(0)); 231 #else 228 232 .arg(cert.issuerInfo(QSslCertificate::OrganizationalUnitName)) 229 233 .arg(cert.issuerInfo(QSslCertificate::Organization)); 234 #endif 230 235 } 231 236 QListIterator<QSslError> it(errors); … … 235 240 } 236 241 237 BNC_CORE->slotMessage(msg.to Ascii(), true);242 BNC_CORE->slotMessage(msg.toLatin1(), true); 238 243 239 244 if (_sslIgnoreErrors) {
Note:
See TracChangeset
for help on using the changeset viewer.