From ed8dbe45c2dbb9cfdd63c9729668921e7e303945 Mon Sep 17 00:00:00 2001 From: UdoRat <35660000+UdoRat@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:42:32 +0100 Subject: [PATCH 1/3] Update AsyncHttpClient.cpp Wrongly formatted GET request --- AsyncHttpClient.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AsyncHttpClient.cpp b/AsyncHttpClient.cpp index cfc2ec8..c50093b 100644 --- a/AsyncHttpClient.cpp +++ b/AsyncHttpClient.cpp @@ -83,8 +83,10 @@ void AsyncHttpClient::getHostname(String url) if (index > 0) { hostPart = url.substring(0, index); + _fullUrl = url.substring(index); // For GET request }else{ hostPart = url; + _fullUrl = "/"; // no URL requested for proper GET request } url.remove(0, index); @@ -102,6 +104,7 @@ void AsyncHttpClient::getHostname(String url) { _hostname = hostPart; } + } void AsyncHttpClient::send() @@ -191,4 +194,4 @@ void AsyncHttpClient::send() aClient = NULL; delete client; } -} \ No newline at end of file +} From b9e3056d45fd3027d49f019d83937729af8af994 Mon Sep 17 00:00:00 2001 From: UdoRat <35660000+UdoRat@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:44:55 +0100 Subject: [PATCH 2/3] Update AsyncHttpClient.cpp --- AsyncHttpClient.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AsyncHttpClient.cpp b/AsyncHttpClient.cpp index c50093b..e335402 100644 --- a/AsyncHttpClient.cpp +++ b/AsyncHttpClient.cpp @@ -103,8 +103,7 @@ void AsyncHttpClient::getHostname(String url) else { _hostname = hostPart; - } - + } } void AsyncHttpClient::send() From ac175ba1d09d58d808edef8a9ac5de493ac1c380 Mon Sep 17 00:00:00 2001 From: UdoRat <35660000+UdoRat@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:47:18 +0100 Subject: [PATCH 3/3] Update AsyncHttpClient.cpp --- AsyncHttpClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncHttpClient.cpp b/AsyncHttpClient.cpp index e335402..5e0b49f 100644 --- a/AsyncHttpClient.cpp +++ b/AsyncHttpClient.cpp @@ -103,7 +103,7 @@ void AsyncHttpClient::getHostname(String url) else { _hostname = hostPart; - } + } } void AsyncHttpClient::send()