diff --git a/AsyncHttpClient.cpp b/AsyncHttpClient.cpp index cfc2ec8..5e0b49f 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); @@ -191,4 +193,4 @@ void AsyncHttpClient::send() aClient = NULL; delete client; } -} \ No newline at end of file +}