NetServices: add query part of the URL to the request

Change-Id: Ie169041925544f082a8be728d77cbc69edf2caa2
This commit is contained in:
Niels Sascha Reedijk 2022-08-15 22:08:03 +01:00
parent 8a16ecbce9
commit 6c4a9fd69b

View File

@ -476,6 +476,9 @@ BHttpRequest::SerializeHeaderTo(HttpBuffer& buffer) const
else
buffer << "/"sv;
if (fData->url.HasRequest())
buffer << "?"sv << Url().Request().String();
// TODO: switch between HTTP 1.0 and 1.1 based on configuration
buffer << " HTTP/1.1\r\n"sv;