fix headers jesus christ
This commit is contained in:
parent
8f0495b18a
commit
3ab3c41301
@ -30,7 +30,7 @@
|
||||
<url type="donation">https://martinrotter.github.io/donate/</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="3.9.0" date="2021-03-05"/>
|
||||
<release version="3.9.0" date="2021-04-01"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
@ -98,6 +98,7 @@
|
||||
#define HTTP_HEADERS_CONTENT_LENGTH "Content-Length"
|
||||
#define HTTP_HEADERS_AUTHORIZATION "Authorization"
|
||||
#define HTTP_HEADERS_USER_AGENT "User-Agent"
|
||||
#define HTTP_HEADERS_COOKIE "Cookie"
|
||||
|
||||
#define LOGSEC_NETWORK "network: "
|
||||
#define LOGSEC_ADBLOCK "adblock: "
|
||||
|
@ -58,9 +58,7 @@ QNetworkReply* BaseNetworkAccessManager::createRequest(QNetworkAccessManager::Op
|
||||
new_request.setAttribute(QNetworkRequest::Attribute::FollowRedirectsAttribute, true);
|
||||
#endif
|
||||
|
||||
new_request.setRawHeader(QSL("Cookie").toLocal8Bit(), QSL("JSESSIONID= ").toLocal8Bit());
|
||||
|
||||
// Setup custom user-agent.
|
||||
new_request.setRawHeader(HTTP_HEADERS_COOKIE, QSL("JSESSIONID= ").toLocal8Bit());
|
||||
new_request.setRawHeader(HTTP_HEADERS_USER_AGENT, QString(APP_USERAGENT).toLocal8Bit());
|
||||
|
||||
auto reply = QNetworkAccessManager::createRequest(op, new_request, outgoingData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user