Fix warning: content-type missing in HTTP POST, defaulting to application/x-www-form-urlencoded. Use QNetworkRequest::setHeader() to fix this problem.
ClosedPublic

Authored by tstibor on Sep 6 2018, 9:58 AM.

Details

Summary

When downloading/updaring data from the internet (comet, asteroids etc..) the http post command misses the setHeader "application/x-www-form-urlencoded" string.
This simple patch fixes the warning:
content-type missing in HTTP POST, defaulting to application/x-www-form-urlencoded. Use QNetworkRequest::setHeader() to fix this problem.

Diff Detail

Repository
R321 KStars
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tstibor created this revision.Sep 6 2018, 9:58 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptSep 6 2018, 9:58 AM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
tstibor requested review of this revision.Sep 6 2018, 9:58 AM
mutlaqja accepted this revision.Sep 6 2018, 10:21 AM
This revision is now accepted and ready to land.Sep 6 2018, 10:21 AM
This revision was automatically updated to reflect the committed changes.