mirror of
https://github.com/YACReader/yacreader
synced 2026-02-12 10:10:31 -05:00
Add COMIC_VINE_USER_AGENT to YACReaderLibrary.ini to be able to customize the user agent
This commit is contained in:
@ -4,13 +4,12 @@
|
||||
#include <QByteArray>
|
||||
#include <QThread>
|
||||
#include <QUrl>
|
||||
#include "yacreader_global.h"
|
||||
|
||||
class HttpWorker : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
HttpWorker(const QString &urlString);
|
||||
HttpWorker(const QString &urlString, const QString &userAgent);
|
||||
public slots:
|
||||
void get();
|
||||
QByteArray getResult();
|
||||
@ -20,6 +19,7 @@ public slots:
|
||||
private:
|
||||
void run();
|
||||
QUrl url;
|
||||
QString userAgent;
|
||||
int httpGetId;
|
||||
QByteArray result;
|
||||
bool _error;
|
||||
|
||||
Reference in New Issue
Block a user