From 71eb79979ad238c0013838116d8e53dab3db6170 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Wed, 15 Feb 2023 14:49:54 +0100 Subject: [PATCH] Fix user-agent There was a semicolon in the user agent string which seems to cause problems on certain servers. Closes #37 --- src/fetcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetcher.cpp b/src/fetcher.cpp index 4bb2b497..b818a30b 100644 --- a/src/fetcher.cpp +++ b/src/fetcher.cpp @@ -225,5 +225,5 @@ QNetworkReply *Fetcher::head(QNetworkRequest &request) const void Fetcher::setHeader(QNetworkRequest &request) const { - request.setRawHeader(QByteArray("User-Agent"), QByteArray("Kasts/") + QByteArray(KASTS_VERSION_STRING) + QByteArray("; Syndication")); + request.setRawHeader(QByteArray("User-Agent"), QByteArray("Kasts/") + QByteArray(KASTS_VERSION_STRING) + QByteArray(" Syndication")); }