Moved the final newline after header above possible cancellation.
The missing newline produced HTTP 502 errors.
This commit is contained in:
parent
87001819a3
commit
614853f743
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user