OAuth: Don't use implicit POST bodies
authorChristian Kamm <mail@ckamm.de>
Mon, 11 Sep 2017 10:24:29 +0000 (12:24 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:32 +0000 (22:01 +0200)
commite47b8ffacabf42b8a023860b2f3c3ea28509d66f
tree77be98aefd2ce40537d72ff1b65b9f82d1ce1256
parenta79b0a37916f5f467a05739a1494eb189a49f14d
OAuth: Don't use implicit POST bodies

The query args of POST requests become the request body. If there's a
redirect, the redirected url will therefore not contain the query
arguments. Use an explicit request body to make the redirection work.
src/gui/creds/oauth.cpp
src/libsync/abstractnetworkjob.cpp
src/libsync/creds/httpcredentials.cpp