mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Merge pull request #64 from waveform80/custom-user-agent
Fix #62 (custom user-agent)
This commit is contained in:
commit
a2c48e0b7d
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ void ImageWriter::startWrite()
|
||||||
connect(_thread, SIGNAL(success()), SLOT(onSuccess()));
|
connect(_thread, SIGNAL(success()), SLOT(onSuccess()));
|
||||||
connect(_thread, SIGNAL(error(QString)), SLOT(onError(QString)));
|
connect(_thread, SIGNAL(error(QString)), SLOT(onError(QString)));
|
||||||
_thread->setVerifyEnabled(_verifyEnabled);
|
_thread->setVerifyEnabled(_verifyEnabled);
|
||||||
|
_thread->setUserAgent(QString("Mozilla/5.0 rpi-imager/%1").arg(constantVersion()).toUtf8());
|
||||||
|
|
||||||
if (!_expectedHash.isEmpty() && _cachedFileHash != _expectedHash && _cachingEnabled)
|
if (!_expectedHash.isEmpty() && _cachedFileHash != _expectedHash && _cachingEnabled)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue