From 10c2f8202cc5608530ef3826aad678a2b5800658 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 8 Mar 2023 20:38:23 +0100 Subject: [PATCH] OpenAI: post --- app/src/main/java/eu/faircode/email/OpenAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/OpenAI.java b/app/src/main/java/eu/faircode/email/OpenAI.java index c8be432336..3461049757 100644 --- a/app/src/main/java/eu/faircode/email/OpenAI.java +++ b/app/src/main/java/eu/faircode/email/OpenAI.java @@ -95,7 +95,7 @@ public class OpenAI { URL url = new URL(uri.toString()); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); - connection.setRequestMethod("GET"); + connection.setRequestMethod("POST"); connection.setDoOutput(true); connection.setDoInput(true); connection.setReadTimeout(TIMEOUT * 1000);