[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-48-g132610748
mones at claws-mail.org
mones at claws-mail.org
Tue Feb 13 13:28:48 UTC 2024
The branch, gtk2 has been updated
via 132610748ed07771d68f806af64f120e384cefdd (commit)
from 3753984c5702aa6985629598e7c1f8b5df18bebf (commit)
Summary of changes:
src/oauth2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 132610748ed07771d68f806af64f120e384cefdd
Author: Olaf Hering <olaf at aepfle.de>
Date: Tue Feb 13 14:27:59 2024 +0100
oauth2: show body for every HTTP request
Consider also the refresh request, not just the initial request for
obtaining tokens.
Signed-off-by: Olaf Hering <olaf at aepfle.de>
diff --git a/src/oauth2.c b/src/oauth2.c
index 32ed03724..3a34dc0be 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -135,6 +135,7 @@ static gint oauth2_post_request (gchar *buf, gchar *host, gchar *resource, gchar
{
gint len;
+ debug_print("Complete body: %s\n", body);
len = strlen(body);
if (header[0])
return snprintf(buf, OAUTH2BUFSIZE, "POST %s HTTP/1.1\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept: text/html,application/json\r\nContent-Length: %i\r\nHost: %s\r\nConnection: close\r\nUser-Agent: ClawsMail\r\n%s\r\n\r\n%s", resource, len, host, header, body);
@@ -370,7 +371,6 @@ int oauth2_obtain_tokens (Oauth2Service provider, OAUTH2Data *OAUTH2Data, const
header = g_strconcat ("", NULL);
}
- debug_print("Complete body: %s\n", body);
oauth2_post_request (request, OAUTH2info[i][OA2_BASE_URL], OAUTH2info[i][OA2_ACCESS_RESOURCE], header, body);
response = oauth2_contact_server (sock, request);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list