Moved the final newline after header above possible cancellation.

The missing newline produced HTTP 502 errors.
This commit is contained in:
tastytea 2019-04-17 09:14:06 +02:00
parent 87001819a3
commit 614853f743
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -172,6 +172,10 @@ int main(int argc, char *argv[])
const string now = strtime(system_clock::now());
stringstream data(get_http(baseurl + "/api/v1/repos/"
+ repo + "/releases"));
if (cgi)
{
cout << endl;
}
if (data.str().empty())
{
cerr << "Error: Could not download releases.\n";
@ -179,10 +183,6 @@ int main(int argc, char *argv[])
}
Json::Value json;
data >> json;
if (cgi)
{
cout << endl;
}
cout <<
"<rss version=\"2.0\">\n"