From daca0c04715b8d402528fcfcfe80d649df5f0ead Mon Sep 17 00:00:00 2001 From: "Alan M. Carroll" Date: Thu, 4 Nov 2021 11:48:29 -0500 Subject: [PATCH] Fix issue #71 - some proxy directives use the wrong header. --- plugin/src/Machinery.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/Machinery.cc b/plugin/src/Machinery.cc index 7c55e54..635d6bb 100644 --- a/plugin/src/Machinery.cc +++ b/plugin/src/Machinery.cc @@ -1597,7 +1597,7 @@ Errata Do_proxy_req_path::invoke(Context &ctx) { TextView host{std::get(ctx.extract(_fmt))}; - if (auto hdr{ctx.ua_req_hdr()}; hdr.is_valid()) { + if (auto hdr{ctx.proxy_req_hdr()}; hdr.is_valid()) { hdr.url().path_set(host); } return {}; @@ -1666,7 +1666,7 @@ Errata Do_proxy_req_fragment::invoke(Context &ctx) { TextView text{std::get(ctx.extract(_fmt))}; - if (auto hdr{ctx.ua_req_hdr()}; hdr.is_valid()) { + if (auto hdr{ctx.proxy_req_hdr()}; hdr.is_valid()) { hdr.url().fragment_set(text); } return {};