Fix User-Agent header
This commit is contained in:
parent
c2f36c5cb3
commit
15b88a480b
@ -55,7 +55,7 @@ void Updater::checkForNewVersion()
|
|||||||
file_ = new QTemporaryFile();
|
file_ = new QTemporaryFile();
|
||||||
|
|
||||||
reqHdr.setValue("Host", host);
|
reqHdr.setValue("Host", host);
|
||||||
reqHdr.setValue("UserAgent", userAgent());
|
reqHdr.setValue("User-Agent", userAgent());
|
||||||
|
|
||||||
connect(http_, SIGNAL(responseHeaderReceived(QHttpResponseHeader)),
|
connect(http_, SIGNAL(responseHeaderReceived(QHttpResponseHeader)),
|
||||||
this, SLOT(responseReceived(QHttpResponseHeader)));
|
this, SLOT(responseReceived(QHttpResponseHeader)));
|
||||||
|
Loading…
Reference in New Issue
Block a user