Commit 1c44058e authored by Valentin Boettcher's avatar Valentin Boettcher Committed by Jasem Mutlaq

Here is a little patch to fix the comet/asteroid update from JPL, which now requires https.

parent abb6666a
......@@ -272,7 +272,7 @@ void AsteroidsComponent::updateDataFile()
QObject::connect(downloadJob, SIGNAL(downloaded()), this, SLOT(downloadReady()));
QObject::connect(downloadJob, SIGNAL(error(QString)), this, SLOT(downloadError(QString)));
QUrl url = QUrl( "http://ssd.jpl.nasa.gov/sbdb_query.cgi" );
QUrl url = QUrl( "https://ssd.jpl.nasa.gov/sbdb_query.cgi" );
QByteArray mag = QString::number(Options::magLimitAsteroidDownload()).toUtf8();
QByteArray post_data = KSUtils::getJPLQueryString("ast", "AcBdBiBhBgBjBlBkBmBqBbAiAjAgAkAlApAqArAsBsBtCh", QVector<KSUtils::JPLFilter> {{"Ai", "<", mag}});
......
......@@ -229,7 +229,7 @@ void CometsComponent::updateDataFile()
connect(downloadJob, SIGNAL(downloaded()), this, SLOT(downloadReady()));
connect(downloadJob, SIGNAL(error(QString)), this, SLOT(downloadError(QString)));
QUrl url = QUrl( "http://ssd.jpl.nasa.gov/sbdb_query.cgi" );
QUrl url = QUrl( "https://ssd.jpl.nasa.gov/sbdb_query.cgi" );
QByteArray post_data = KSUtils::getJPLQueryString("com", "AcBdBiBgBjBlBkBqBbAgAkAlApAqArAsBsBtChAmAn", QVector<KSUtils::JPLFilter> {{"Af", "!=", "D"}});
downloadJob->post(url, post_data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment