From da9ee00a7a934f046cf23fa8b38a45b73ad11744 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Tue, 10 Nov 2020 03:57:44 +0100 Subject: [PATCH] Added getter for url --- src/AsyncHTTPRequest.cpp | 2 -- src/AsyncHTTPRequest.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AsyncHTTPRequest.cpp b/src/AsyncHTTPRequest.cpp index 5b11ccb..1952238 100644 --- a/src/AsyncHTTPRequest.cpp +++ b/src/AsyncHTTPRequest.cpp @@ -524,8 +524,6 @@ bool AsyncHTTPRequest::_buildRequest() _request->write(_URL.query); _request->write(" HTTP/1.1\r\n"); - _URL = {}; - header* hdr = _headers; while (hdr) diff --git a/src/AsyncHTTPRequest.h b/src/AsyncHTTPRequest.h index 7f1f516..95195de 100644 --- a/src/AsyncHTTPRequest.h +++ b/src/AsyncHTTPRequest.h @@ -243,6 +243,8 @@ class AsyncHTTPRequest String respHeaderValue(const __FlashStringHelper *name); bool respHeaderExists(const __FlashStringHelper *name); #endif + + const URL &url() const { return _URL; } String headers(); // Return all headers as String