Skip to content

Commit

Permalink
Fix issue #71 - some proxy directives use the wrong header.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Nov 4, 2021
1 parent ae7e3ae commit daca0c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/src/Machinery.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ Errata
Do_proxy_req_path::invoke(Context &ctx)
{
TextView host{std::get<IndexFor(STRING)>(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 {};
Expand Down Expand Up @@ -1666,7 +1666,7 @@ Errata
Do_proxy_req_fragment::invoke(Context &ctx)
{
TextView text{std::get<IndexFor(STRING)>(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 {};
Expand Down

0 comments on commit daca0c0

Please sign in to comment.