summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorEd Tanous <etanous@nvidia.com>2024-08-19 21:46:20 +0300
committerEd Tanous <etanous@nvidia.com>2025-01-15 04:57:48 +0300
commit6282bc71bb47182ee0985a450d7fe32bfbfe8a4d (patch)
tree3158e08fe6c36dcaf098065bfffdd98b8d1d68dd /http
parent60e995cd6ab15aac32e146860c2a99c069ea111f (diff)
downloadbmcweb-6282bc71bb47182ee0985a450d7fe32bfbfe8a4d.tar.xz
Don't forward skip or only to aggregator
These two parameters are not idempotent, and are currently being run first on the satellite, then again on the aggregator. This results in errors and unexpected results. This commit detects when we're parsing a top collection, and filters out those two parameters from being applied to the satellite request. To accomplish rewriting the URI, a new Request API needs added for non-const access to the URI object. Tested: Aggregator shows results as expected. Query params are not forwarded to satellite Change-Id: I99cbbb08da9fcd06c9ee10d371b253e32d01f59b Signed-off-by: Ed Tanous <etanous@nvidia.com>
Diffstat (limited to 'http')
-rw-r--r--http/http_request.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/http/http_request.hpp b/http/http_request.hpp
index 7cf2842cb3..74681ccb7e 100644
--- a/http/http_request.hpp
+++ b/http/http_request.hpp
@@ -111,6 +111,11 @@ struct Request
return req.target();
}
+ boost::urls::url& url()
+ {
+ return urlBase;
+ }
+
boost::urls::url_view url() const
{
return {urlBase};