Without this patch, Attica will make a lot of noise when interacting with an OCS server, in the form of a message for each network request asking to have the content type set.
Details
Details
- Reviewers
apol - Group Reviewers
Frameworks - Commits
- R235:dfdbf55a4cda: Explicitly set content type to form data
Without patch: A warning is written out for each request
With patch: The warning is gone, and things still work
Diff Detail
Diff Detail
- Repository
- R235 Attica
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Sorry, i forgot to add it in the description. Specifically, this warning:
content-type missing in HTTP POST, defaulting to application/x-www-form-urlencoded. Use QNetworkRequest::setHeader() to fix this problem.
So, quite literally, this change has no effect other than silencing that warning which insists that i should silence it...