mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-02 04:29:11 +02:00
Remove some more Qt < 5.15 hack
This commit is contained in:
parent
7e1bbbbd6a
commit
f5f27c0212
@ -151,8 +151,7 @@ bool Downloader::doDownload(const Download &dl, const QList<HTTPHeader> &headers
|
|||||||
for (int i = 0; i < headers.size(); i++) {
|
for (int i = 0; i < headers.size(); i++) {
|
||||||
const HTTPHeader &hdr = headers.at(i);
|
const HTTPHeader &hdr = headers.at(i);
|
||||||
request.setRawHeader(hdr.key(), hdr.value());
|
request.setRawHeader(hdr.key(), hdr.value());
|
||||||
// QByteArray::compare() not available in Qt < 5.12
|
if (!hdr.key().compare("User-Agent", Qt::CaseInsensitive))
|
||||||
if (!QString(hdr.key()).compare("User-Agent", Qt::CaseInsensitive))
|
|
||||||
userAgent = true;
|
userAgent = true;
|
||||||
}
|
}
|
||||||
if (!userAgent)
|
if (!userAgent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user