remove debugging code
This commit is contained in:
parent
b2704e27c4
commit
efd2735063
@ -66,18 +66,15 @@ QNetworkReply* BaseNetworkAccessManager::createRequest(QNetworkAccessManager::Op
|
|||||||
// new_request.setMaximumRedirectsAllowed(0);
|
// new_request.setMaximumRedirectsAllowed(0);
|
||||||
|
|
||||||
new_request.setRawHeader(HTTP_HEADERS_COOKIE, QSL("JSESSIONID= ").toLocal8Bit());
|
new_request.setRawHeader(HTTP_HEADERS_COOKIE, QSL("JSESSIONID= ").toLocal8Bit());
|
||||||
/*
|
|
||||||
auto custom_ua = qApp->web()->customUserAgent();
|
|
||||||
|
|
||||||
if (custom_ua.isEmpty()) {
|
auto custom_ua = qApp->web()->customUserAgent();
|
||||||
new_request.setRawHeader(HTTP_HEADERS_USER_AGENT, HTTP_COMPLETE_USERAGENT);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
new_request.setRawHeader(HTTP_HEADERS_USER_AGENT, custom_ua.toLocal8Bit());
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
new_request.setRawHeader(HTTP_HEADERS_USER_AGENT, " ");
|
if (custom_ua.isEmpty()) {
|
||||||
|
new_request.setRawHeader(HTTP_HEADERS_USER_AGENT, HTTP_COMPLETE_USERAGENT);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
new_request.setRawHeader(HTTP_HEADERS_USER_AGENT, custom_ua.toLocal8Bit());
|
||||||
|
}
|
||||||
|
|
||||||
auto reply = QNetworkAccessManager::createRequest(op, new_request, outgoingData);
|
auto reply = QNetworkAccessManager::createRequest(op, new_request, outgoingData);
|
||||||
return reply;
|
return reply;
|
||||||
|
@ -17,6 +17,6 @@
|
|||||||
#define ATOM_REGEX_MATCHER "<link[^>]+type=\"application\\/(?:atom\\+xml|rss\\+xml)\"[^>]*>"
|
#define ATOM_REGEX_MATCHER "<link[^>]+type=\"application\\/(?:atom\\+xml|rss\\+xml)\"[^>]*>"
|
||||||
#define ATOM_HREF_REGEX_MATCHER "href=\"([^\"]+)\""
|
#define ATOM_HREF_REGEX_MATCHER "href=\"([^\"]+)\""
|
||||||
|
|
||||||
#define GITHUB_URL_REGEX "github\\.com\\/(\\w+)\\/(\\w+)"
|
#define GITHUB_URL_REGEX "github\\.com\\/([^\\s]+)\\/([^\\s]+)"
|
||||||
|
|
||||||
#endif // STANDARD_DEFINITIONS_H
|
#endif // STANDARD_DEFINITIONS_H
|
||||||
|
@ -65,6 +65,8 @@ QList<StandardFeed*> AtomParser::discoverFeeds(ServiceRoot* root, const QUrl& ur
|
|||||||
qDebugNN << LOGSEC_CORE << QUOTE_W_SPACE(my_url) << "is not a direct feed file.";
|
qDebugNN << LOGSEC_CORE << QUOTE_W_SPACE(my_url) << "is not a direct feed file.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IOFactory::writeFile("aaaa", data);
|
||||||
|
|
||||||
// 2.
|
// 2.
|
||||||
QRegularExpression rx(QSL(ATOM_REGEX_MATCHER), QRegularExpression::PatternOption::CaseInsensitiveOption);
|
QRegularExpression rx(QSL(ATOM_REGEX_MATCHER), QRegularExpression::PatternOption::CaseInsensitiveOption);
|
||||||
QRegularExpression rx_href(QSL(ATOM_HREF_REGEX_MATCHER), QRegularExpression::PatternOption::CaseInsensitiveOption);
|
QRegularExpression rx_href(QSL(ATOM_HREF_REGEX_MATCHER), QRegularExpression::PatternOption::CaseInsensitiveOption);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user