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